I have tried several several strategies to set the timeout of a
session in my application to 2 weeks; all have failed so far. The
current one consists of:
1) setting the timeout to 0 in my application's settings, under all:
all:
.actions: [...]
.settings: [...]
timeout: 0
2) extending my user session object to set the timeout according to my
needs:
class myUser extends sfGuardSecurityUser
{
public function initialize(sfEventDispatcher $dispatcher, sfStorage
$storage, $options = array())
{
if (sfConfig::get('sf_timeout') == 0) {
// session will expire if window is open for 2 weeks
sfConfig::set('sf_timeout', 86400*14);
}
return parent::initialize($dispatcher, $storage, $options);
}
...
what am I doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---