Posted By

fackz on 11/05/13


session expire

Versions (?)

Who likes this?

12 people have marked this snippet as a favorite


How to expire a PHP session after X minutes?

 / Published in: PHP


The best solution is to implement a session timeout on your own. Use a simple time stamp that denotes the time of the last activity (i.e. request) and update it with every request:

Report this snippet  


RSS Icon Subscribe to comments
Posted By: jamessusan104 on August 22, 2017

On the off chance that i have session factors to tell if a client is on the web yet they have left the PC for X minutes, does the session timeout? If not what is a code to make them timeout if no activity(activity=going to different pages and so on)? assignment help service

Posted By: ChristineMeany on January 12, 2018

wow, great) thanks a lot

Posted By: sucaju on June 2, 2018

Great Work, Thanks

Posted By: johnmathew on July 2, 2018

I have no words to to say, specifically for a motive that it is pretty authentic what you have got written and shared right here. It's everywhere inside everyone who preserve thinking that way as you'll assume out of clear information. I'm a writer and have some good experiences dealing with topics that deals with injustice in terms of human caring between the individuals. I presently work for a best essay writing service and I'm used to write some articles whenever I get some free time.

Posted By: williamhillx on August 26, 2018

Great work! Simple beautiful!

Posted By: herry on November 15, 2018

Great work! showbox apk

Posted By: khcn18 on July 12, 2019

Php save time activity?

Posted By: katebrouwn on July 15, 2019

Thanks to, you can free yourself from all the unnecessary worries connected with academic studies and pay to a professional with a request to “do my writing a case study format APA.” . Case studies are usually assigned at sociology, psychology, education, and anthropology courses.

Posted By: rehaman on August 5, 2019

Good work

Get details about your blog link:

Posted By: phamyen on October 25, 2019

Please treat each other well. Everybody has difficulties that we have to overcome, do not know later but how to live each day happily. atari breakout

You need to login to post a comment.