Comments on: HOWTO: Disable Session Timeout in Symfony http://robrosenbaum.com/php/howto-disable-session-timeout-in-symfony/ PHP, JavaScript, and Other Things Wed, 25 Feb 2009 11:43:00 +0000 hourly 1 http://wordpress.org/?v=3.3.1 By: Larry Weya http://robrosenbaum.com/php/howto-disable-session-timeout-in-symfony/comment-page-1/#comment-206 Larry Weya Wed, 25 Feb 2009 11:43:00 +0000 http://robrosenbaum.com/php/howto-disable-session-timeout-in-symfony/#comment-206 http://www.symfony-project.org/installation/1_1/upgrade#Session%20timeout Set it in factories.yml for symfony 1.1 http://www.symfony-project.org/installation/1_1/upgrade#Session%20timeout

Set it in factories.yml for symfony 1.1

]]>
By: Rajeevr http://robrosenbaum.com/php/howto-disable-session-timeout-in-symfony/comment-page-1/#comment-205 Rajeevr Tue, 04 Nov 2008 06:18:00 +0000 http://robrosenbaum.com/php/howto-disable-session-timeout-in-symfony/#comment-205 Hi, I put timeout as 1 in settings.yml But the session is not clearing!!! Tel me whats the problem?? Hi,
I put timeout as 1 in settings.yml
But the session is not clearing!!!
Tel me whats the problem??

]]>
By: Colnector http://robrosenbaum.com/php/howto-disable-session-timeout-in-symfony/comment-page-1/#comment-204 Colnector Thu, 09 Oct 2008 06:05:00 +0000 http://robrosenbaum.com/php/howto-disable-session-timeout-in-symfony/#comment-204 As I've had trouble making this work with Symfony 1.1, here's my small patch. It's for the same initialize() function mentioned here. public function initialize(sfEventDispatcher $dispatcher, sfStorage $storage, $options = array()) { $options['timeout'] = 86400; # 1 day – or set to as long as you want parent::initialize($dispatcher, $storage, $options); } As I’ve had trouble making this work with Symfony 1.1, here’s my small patch. It’s for the same initialize() function
mentioned here.

public function initialize(sfEventDispatcher $dispatcher, sfStorage $storage, $options = array()) {
$options['timeout'] = 86400; # 1 day – or set to as long as you want

parent::initialize($dispatcher, $storage, $options);
}

]]>
By: Sebastian http://robrosenbaum.com/php/howto-disable-session-timeout-in-symfony/comment-page-1/#comment-203 Sebastian Fri, 30 May 2008 07:46:00 +0000 http://robrosenbaum.com/php/howto-disable-session-timeout-in-symfony/#comment-203 Rob, there is no difference between PHP and sf session handling. In fact, AFAIK sf uses PHP file based session handler by default. Independent of the storage, the session system never detects browser close, it always does its gc based on the timestamp of the last request. Each request updates a timestamp of or in the session file/database entry. But for sure its ok to disable this system if it doesn't work for you (because of times of long activity). I just wanted to state that there is no difference in principal between sf and PHP session handling! Sebastian Rob,

there is no difference between PHP and sf session handling. In fact, AFAIK sf uses PHP file based session handler by default.

Independent of the storage, the session system never detects browser close, it always does its gc based on the timestamp of the
last request. Each request updates a timestamp of or in the session file/database entry.

But for sure its ok to disable this system if it doesn’t work for you (because of times of long activity).

I just wanted to state that there is no difference in principal between sf and PHP session handling!

Sebastian

]]>
By: thichquay http://robrosenbaum.com/php/howto-disable-session-timeout-in-symfony/comment-page-1/#comment-202 thichquay Sat, 26 Apr 2008 02:40:00 +0000 http://robrosenbaum.com/php/howto-disable-session-timeout-in-symfony/#comment-202 I created a myUser.class.php under lib folder but however, I don't think this method is working (settings.yml was set with timeout = false as well). Please help… THanks I created a myUser.class.php under lib folder but however, I don’t think this method is working (settings.yml was set with
timeout = false as well). Please help…

THanks

]]>