Re: start session problem in cakephp1.2 beta
I have the same problem since upgrading to 1.2 beta from alpha. I need to add @session_start(); to each action even though Session.start is set to true. Did you manage to find a fix? On Jan 7, 1:03 pm, phpcurious [EMAIL PROTECTED] wrote: I have almost the same problem as you do with regards to theSession.start. I do this in Cakephp 1.1.x when setting sessions: define('AUTO_SESSION', false); define('CAKE_SESSION_SAVE', 'database'); define('CAKE_SESSION_TABLE', 'cake_sessions'); define('CAKE_SESSION_TIMEOUT', '120'); but when I tried it in cakephp 1.2 beta with this settings: Configure::write('Session.save', 'database'); Configure::write('Session.table', 'cake_sessions'); Configure::write('Session.database', 'default'); Configure::write('Session.start', false); the same kind of error appears: Fatal error: Class 'ConnectionManager' not found in ... please tell me if I have done something wrong, or if I have forgotten something else... thanks... On Jan 7, 12:42 am, pravinda [EMAIL PROTECTED] wrote: Hi Everybody, It was my wrong manipulation. The actual problem is I want to get some sessiondata in routes.php itself, because my application is more than 99% ajax based and I don't want to change the url in the address bar. So, while login I set somesessionvariable for next action and then refresh the page, in routes.php I fetch the action fromsessionand then set the action in a variable then if(!isset($_SESSION)) // this I need to do because unless Istartthe sessionI can not usesessionvariable. @session_start(); $action = 'display'; if(isset(sessionvariable)) $action = getsessionvariable; Router::connect('/', array('controller' = 'pages', 'action' = $action, 'home')); If I use session_start(); here ( as I was using in prebeta) then after this I need to use session_start(); every where. if I don't use session_start(); here I cann't get thesessionvariable in routes.php and if I do I session_start(); here then in other pages like in controller this creates the problem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: start session problem in cakephp1.2 beta
...okay installed the nightly and this now works. On Jan 30, 10:06 pm, Richard [EMAIL PROTECTED] wrote: I have the same problem since upgrading to 1.2 beta from alpha. I need to add @session_start(); to each action even though Session.start is set to true. Did you manage to find a fix? On Jan 7, 1:03 pm, phpcurious [EMAIL PROTECTED] wrote: I have almost the same problem as you do with regards to theSession.start. I do this in Cakephp 1.1.x when setting sessions: define('AUTO_SESSION', false); define('CAKE_SESSION_SAVE', 'database'); define('CAKE_SESSION_TABLE', 'cake_sessions'); define('CAKE_SESSION_TIMEOUT', '120'); but when I tried it in cakephp 1.2 beta with this settings: Configure::write('Session.save', 'database'); Configure::write('Session.table', 'cake_sessions'); Configure::write('Session.database', 'default'); Configure::write('Session.start', false); the same kind of error appears: Fatal error: Class 'ConnectionManager' not found in ... please tell me if I have done something wrong, or if I have forgotten something else... thanks... On Jan 7, 12:42 am, pravinda [EMAIL PROTECTED] wrote: Hi Everybody, It was my wrong manipulation. The actual problem is I want to get some sessiondata in routes.php itself, because my application is more than 99% ajax based and I don't want to change the url in the address bar. So, while login I set somesessionvariable for next action and then refresh the page, in routes.php I fetch the action fromsessionand then set the action in a variable then if(!isset($_SESSION)) // this I need to do because unless Istartthe sessionI can not usesessionvariable. @session_start(); $action = 'display'; if(isset(sessionvariable)) $action = getsessionvariable; Router::connect('/', array('controller' = 'pages', 'action' = $action, 'home')); If I use session_start(); here ( as I was using in prebeta) then after this I need to use session_start(); every where. if I don't use session_start(); here I cann't get thesessionvariable in routes.php and if I do I session_start(); here then in other pages like in controller this creates the problem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: start session problem in cakephp1.2 beta
Hi Everybody, It was my wrong manipulation. The actual problem is I want to get some session data in routes.php itself, because my application is more than 99% ajax based and I don't want to change the url in the address bar. So, while login I set some session variable for next action and then refresh the page, in routes.php I fetch the action from session and then set the action in a variable then if(!isset($_SESSION)) // this I need to do because unless I start the session I can not use session variable. @session_start(); $action = 'display'; if(isset(session variable)) $action = get session variable; Router::connect('/', array('controller' = 'pages', 'action' = $action, 'home')); If I use session_start(); here ( as I was using in prebeta) then after this I need to use session_start(); every where. if I don't use session_start(); here I cann't get the session variable in routes.php and if I do I session_start(); here then in other pages like in controller this creates the problem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: start session problem in cakephp1.2 beta
I have almost the same problem as you do with regards to the Session.start. I do this in Cakephp 1.1.x when setting sessions: define('AUTO_SESSION', false); define('CAKE_SESSION_SAVE', 'database'); define('CAKE_SESSION_TABLE', 'cake_sessions'); define('CAKE_SESSION_TIMEOUT', '120'); but when I tried it in cakephp 1.2 beta with this settings: Configure::write('Session.save', 'database'); Configure::write('Session.table', 'cake_sessions'); Configure::write('Session.database', 'default'); Configure::write('Session.start', false); the same kind of error appears: Fatal error: Class 'ConnectionManager' not found in ... please tell me if I have done something wrong, or if I have forgotten something else... thanks... On Jan 7, 12:42 am, pravinda [EMAIL PROTECTED] wrote: Hi Everybody, It was my wrong manipulation. The actual problem is I want to get some session data in routes.php itself, because my application is more than 99% ajax based and I don't want to change the url in the address bar. So, while login I set some session variable for next action and then refresh the page, in routes.php I fetch the action from session and then set the action in a variable then if(!isset($_SESSION)) // this I need to do because unless I start the session I can not use session variable. @session_start(); $action = 'display'; if(isset(session variable)) $action = get session variable; Router::connect('/', array('controller' = 'pages', 'action' = $action, 'home')); If I use session_start(); here ( as I was using in prebeta) then after this I need to use session_start(); every where. if I don't use session_start(); here I cann't get the session variable in routes.php and if I do I session_start(); here then in other pages like in controller this creates the problem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: start session problem in cakephp1.2 beta
Hi Robby, Thanks to reply, but I already done this but still this problem persist. I have already written in my topic about this. -pravin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: start session problem in cakephp1.2 beta
When you upgraded, did you diff the various control files and walk through the updates? You _should_ have this line somewhere in your core.php in app/config (in mine it is on line 131): Configure::write('Session.start', true); That is all you should need to do to get sessions to auto-start. -r --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---