1, how to set a long life session?
Will Session.cookie_lifetime, Session.gc_maxlifetime time set a little longer.
2, why does the initialization of the session when the error?
A, check the storage path of the session file, the path is right, the operation permissions are sufficient
b, check for HTML content output before session initialization
3, does the session have any effect when the client prohibits the use of cookies?
In the case where the client's cookie is refused to be used. Will bring a lot of inconvenience:
PHP automatically adds SessionID parameters to the page's links and forms, among other places. To ensure that the session
Continue, but this time, in a browser many times manually enter the same address, session
will be recognized as multiple sessions rather than once.
4, why does my session lapse in a few minutes?
1, check the browser's cookie is enabled, if not enabled to check
is the system allowed to pass SessionID with URL, and finally check url_rewriter.tags settings
2, check the session of the garbage identification time, and recovery probability
5, how do I store my session in the database?
Use Session_set_save_handler ("open", "close", "read", "write", "Destroy", "GC")
Customize your own way of handling.
6, how to use session to get the current number of users and lists?
If the session is stored in the database, it will be easy to implement, but no matter what
The data obtained from the method is not necessarily the exact data.
7, why do I fill out the form after the back of the content is missing?
Check the script for initialization of the session action, if any, use:
Session_cache_limiter (' Private, must-revalidate ');
6, how to use session to control the caching of Web pages?
Adjust Session.cache_limiter, Session.cache_expire
8, I use session governance sessions, false as an account on both machines landing at the same time will have an impact?
Will not have an impact. Because this is two sessionid. That means there are two session files on the server
To ensure the individual sessions.