Thursday, May 31, 2012

Re: Logout user on browser close

Set the session cookie timeout to "0" "Zero" in core.


Google: Very common application used by web developers.

On May 31, 2012, at 12:41 PM, Andrés Manikis wrote:

I don't know if the data itself is stored in a cookie or in a session.
But what is stored in a cookie is some info for the login.
Anyway, do you know how to logout the user when I close the browser?

I suppose it's a very common feature of any web application.

Thank you!
Andrés

El jueves, 31 de mayo de 2012 12:51:10 UTC-3, AD7six escribió:


On Thursday, 31 May 2012 17:02:17 UTC+2, Andrés Manikis wrote:
Another thing to note.
In the cookbook explains that the user data is stored in a cookie.

Your user data is not stored in a cookie - where is that stated?
 
I don't want that. I would like to store the user data in a session so after closure the session expires and the user is not logged in anymore.

That's how it works.

AD

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: