Title said, I set the config/session.php in lifetime = 10 but more than 10 minutes is still not logged out, how to set, set where or need to change what files can be done automatically log out of the operation?
Reply content:
Title said, I set the config/session.php in lifetime = 10 but more than 10 minutes is still not logged out, how to set, set where or need to change what files can be done automatically log out of the operation?
Session is automatically refreshed this 10 minutes is the automatic destruction of 10 minutes when the user does not have any action such as a page refresh I estimate you are there in the process of refreshing the page or other actions
This is not by the framework to achieve the general, is directly set the session's life cycle, not set the default browser close the end.
Of course, you're a Virgo. The framework must be used to control, only write cache records the last operation time to determine whether expired.
Lifetime only specifies the number of seconds after which the data is considered "junk" and cleared, which is a chance. Not 100% deleted.
(Depends on session.gc_probability and session.gc_divisor). You can take a look at the PHP documentation.
If you want to delete it for 10 minutes, you can do it in code. if (Time ()-$_session[' time '] > 10*60) {session_destory ()}