viji
viji

Reputation: 2926

Extend session timeout per user in cakephp

I want to change the session timeout per customer. I wanna give the option "Remember me" in the login window. The session for the user who clicks on that should not ever be expired and for others the session timeout should be until the browser gets closed.

Upvotes: 0

Views: 766

Answers (1)

mark
mark

Reputation: 21743

try http://www.dereuromark.de/2012/02/02/more-persistent-sessions-in-cake2-x/

using

 echo $this->Form->input('auto_login', array('type'=>'checkbox', 'label'=>__('Remember on this computer')));

Upvotes: 1

Related Questions