开发者

PHP - Inspecting session max lifetime within the code

How do you inspect开发者_运维知识库 the value assigned to session.gc_maxlifetime?

Obviousely this does not work:

echo session.gc_maxlifetime;


The function you are looking for is ini_get...

echo ini_get('session.gc_maxlifetime');
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜