What php.ini settings are required to allow a session to remain active for approximately two days?

前端 未结 5 1188
天命终不由人
天命终不由人 2021-01-13 07:53

http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime

says that a session.cookie_lifetime of 0 \"goes until the browser is closed\". Is

5条回答
  •  天命终不由人
    2021-01-13 08:36

    Wait there is the confusion .....

    "Session" will not lost if the the browser get closed....its the "Cookies" which get lost on close of browser.

    "Session" is altogether is different from "Cookies". Session stays at server and can be destroyed explicitly. Whereas "Cookies" resides at client end and can be destroyed manually or at a particular time interval or on browser close.

提交回复
热议问题