Is there a way to set the session timeout when a user logs in?

I have a timeout setup for field agents, but there are a few users who
only access the application from their office, and want to have the
session timeout much longer (essentially for a working day)

Is there a way to override the config setting?

I tried adding
if( $user['User']['group_id'] == 3 )
{
    Configure::write( 'Session.timeout', '3000' );
}
to my login action, but cake just ignores that and uses the core.php
setting.

I'm using Configure::write( 'Session.save', 'cake' ); for my sessions.

Does anyone have any ideas on how this could be achieved.

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to