...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
-~----------~----~----~----~------~----~------~--~---

Reply via email to