Sunday, March 31, 2013

Re: How can I keep a user logged in longer?

if its just keeping people logged in (via a "remember me" checkbox), then writing a simple bit of cookie code which encrypts the user/pass in a cookie and decrypts and attempts to login before the auth component takes over would be one way.

There are such plugins available - heres one:
http://milesj.me/code/cakephp/auto-login


On Mon, Apr 1, 2013 at 12:57 PM, Shahruk Khan <shahruksemail@gmail.com> wrote:
Right now users get logged out on a daily basis. I am using the table cake_sessions to store user sessions. How can I increase the logout time to say a month or so?

--
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 unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
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 unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: