Does the SESSION always expire within the configured time (such as 24 minutes) no matter how you operate when PHP saves the SESSION with the SESSION?

Source: Internet
Author: User
Does the SESSION always expire within the configured time (such as 24 minutes) no matter how you operate when PHP saves the SESSION with the SESSION? I kept operating for 23rd minutes. Will the SESSION still expire in 24 minutes ?? Does the SESSION always expire within the configured time (such as 24 minutes) no matter how you operate when PHP saves the SESSION with the SESSION? I kept operating for 23rd minutes. Will the SESSION still expire in 24 minutes ??

Reply content:

Does the SESSION always expire within the configured time (such as 24 minutes) no matter how you operate when PHP saves the SESSION with the SESSION? I kept operating for 23rd minutes. Will the SESSION still expire in 24 minutes ??

By default, the session expiration time refers to the length between your next operation. Each time you perform an operation, the session generation cycle is reset to 24 minutes. If the interval between the two operations is greater than 24 minutes, the session will be invalid.

This is only the default situation, you can also force it, from the session generation, as long as 24 minutes, immediately expire, no matter how many operations in the middle.
You can also configure the option to never expire when the session is configured. You can configure a large expiration time, such as 30 years.

No, unless you have enabled the strict expiration mode.

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.