callshakeel
asked on
how to destroy session after some time
hi,
I'm registering a session for user of mysite, using fuctionsession_destroy();
session_start();
session_register("user");
$user = $username;
but i want that if there is no activity by user for last one hour then automatically destroy his session,
can we register expire time with session
Is there any way to store session for some time,
I'm registering a session for user of mysite, using fuctionsession_destroy();
session_start();
session_register("user");
$user = $username;
but i want that if there is no activity by user for last one hour then automatically destroy his session,
can we register expire time with session
Is there any way to store session for some time,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.