3
Galera I have a login system in PHP. I saved the login and the password of the user in a session.
This is how I start it:
// Inicia a sessão
session_start();
My question and how to make this session have a duration of 30 minutes, ie if the user leave the page stopped for 30 minutes the session has to be deleted.
save user password in a session ???
– novic
http://stackoverflow.com/questions/520237/how-do-i-expire-a-php-session-after-30-minutes
– novic
@Virgilionovic I already saved, but I want it erased after 30 minutes
– Hugo Borges
Do not save password and session, the maximum the id of the user who is logged in or the identification you prefer, less important data!
– novic
You can save in the session the id and a date and time and as you request the page checking if the time has already exceeded 30 minutes and close the session.
– novic