开发者

Symfony, how to set session timeout in action

开发者 https://www.devze.com 2023-03-24 00:06 出处:网络
How to set session timeout in sym开发者_开发问答fony 1.4 from an action?Try adding a timestamp parameter to the session when its created. Then in your actions just check this timestamp is not too old.

How to set session timeout in sym开发者_开发问答fony 1.4 from an action?


Try adding a timestamp parameter to the session when its created. Then in your actions just check this timestamp is not too old.

Good luck


   sfConfig::set("sf_timeout", (int)SettingsQuery::getAttr("session_timeout", 42000));
0

精彩评论

暂无评论...
验证码 换一张
取 消