tags:

views:

103

answers:

2

I have a login page that uses session variables. How can i set an expire time for a session? eg: after 15 minutes of inactivity destroy the session.

how can i do it?

+4  A: 

You should see this link

DominixZ
A: 

You must set a variable in your session object with the time in every page it accesses, and in that all pages you will calculate if the current time have a difference from the last time setted of 15 minutes or more, if so you invalidate the session...

if not, you set a new time to that variable..

Garis Suero