开发者

Symfony, how to set session timeout in action

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜