views:

110

answers:

1

I've noticed that when I refresh the page twice in a row or double click on a link, the user is automatically logged out. I'm using cakephp 1.2 and the Auth component. I don't have a lot of experience with CakePHP, any ideas what could cause this?

+3  A: 

You probably have Configure::write('Security.level') set to 'high'. In that setting, the Session ID is being regenerated on each request. When you refresh the second time with the same old Cookie that has an old Session ID, it won't be valid anymore.

deceze