Re: Sessions and Redirect

2009-08-19 Thread Jukai
Dear All I have same problem with LS, The Session didn't save anything when redirect, it means Auth didnt work!!, i think there is some configure nedeed but i dont know what, i was waste a week for this same problem... HELP!!! best regard --~--~-~--~~~---~--~~ You

Re: Sessions and Redirect

2009-08-12 Thread Dr. Loboto
Try first retrieve your saved data from session in login action, then do login, and on success write your data back to session (maybe on fail too - don't know). Looks like session is re-created on login. On Aug 12, 5:03 am, LS wrote: > Er... > Sorry, you're right. > My code example was wrong, bu

Re: Sessions and Redirect

2009-08-11 Thread LS
Er... Sorry, you're right. My code example was wrong, but using Session->check ('key') ?> it also returns false. It creates two sessions (entries) in the database (cake_sessions). What i'm doing exactly: 1. User comes from an external site (eg. google.com) to an user- protected page (eg. mydomai

Re: Sessions and Redirect

2009-08-11 Thread Robert P
In TwoController::bug() your call to SessionComponent seems nonsensical. Looking at what you are trying to do it should either be $this->Session->check('key') which should return TRUE since you set this value in OneController::start(), or ($this->Session->read('key') == 'info') which should also

Sessions and Redirect

2009-08-11 Thread LS
Hello, everyone. I'm into a dead end and I can't seem to get this session and redirect things right... I've tested this using cakephp, php and database session methods. I have two controllers and one action in each one, like this: Session->write('key', 'info'); $this->redirect('/two/bug');