For more information about the SESSION time, refer to Daniel's explanation.

Source: Internet
Author: User
Regarding the SESSION time issue, Daniel explained how to use one of my pages: & nbsp; session_cache_expire (1); other pages: session_get_cookie_params (); but the result is as follows: array & nbsp; (& nbsp; [lifetime] & nbsp; & gt; & nbsp; 0 & nbsp; [path] & nbsp; for details about SESSION time, refer to Daniel.
For a single page:

Session_cache_expire (1 );

For another page:
Session_get_cookie_params ();

But the result is as follows:

Array ([lifetime] => 0 [path] =>/[domain] => [secure] => [httponly] => ))

Why is life time always 0?

That is, session_cache_expire (1); does not work. I want to limit the session expiration time to 30 minutes!


------ Solution --------------------
Http://www.laruence.com/2012/01/10/2469.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.