Wednesday, January 9, 2013

Re: Session lost on redirect

Hi,

did you find any help with this problem. i have the same issue now.

Greetings
m.

Am Sonntag, 22. April 2012 18:59:45 UTC+2 schrieb vijay kumbhar:
Hey,

I have the same issue here. I am working on FB login with CakePHP 2.0
& everything works perfect, but when i get the user details from FB &
login that user to portal, Auth session gets created. But after
logging in user get redirected to dashboard, between this the Auth
session gets destroyed.

Session component is already added to AppController.

I tracked a lot...but no solution.  Please help ..


On Apr 20, 6:15 am, Kanwal <enggkanwalj...@gmail.com> wrote:
> Have you added Session component in controller properly
> var $component=array('Session');
>
> On Apr 20, 2:52 am, Ralf Rottmann <ralf.rottm...@grandcentrix.net>
> wrote:
>
>
>
>
>
>
>
> > Using latest stable version 2.1.1:
>
> > Having this in the controller that is called first:
>
> > $this->Session->write('user', $uid);
> > $this->redirect('/home');
>
> > and this in HomeController:
>
> > var_dump($this->Session->read('user');
>
> > Problem: The session var in HomeController is no longer set. Instead,
> > a new session is created. Any idea why CakePHP looses the Session on
> > redirects?
>
> > I already set security level to low and checked cookie domain.
> > --
>
> > GrandCentrix GmbH
> > Lüderichstrasse 2-4
> > 51105 Köln, Deutschland
>
> > Amtsgericht Köln | HRB  70119 | Geschäftsführer: R. Freygang, R. Rottmann,
> > M. Willnow | USt.-IdNr.: DE266333969

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: