How do I log out user using session on php if inactive for 10 min [closed]?

Up vote -4 down vote favorite share g+ share fb share tw.

Here is my logout script I want to logout user if the page is inactive for 10 min and send to index. Php using header. Php session logout link|improve this question asked Oct 13 '11 at 7:31NoPHPknowldege716.

This question might help you: stackoverflow.com/questions/520237/… – Guganeshan. T Oct 13 '11 at 7:32.

This is done by setting session time out. For example: $idle = xxx; $session_life = time() - $_SESSION'timeout_logout'; if($session_life > $idle) { session_destroy(); header("Location: index. Php"); } S_SESSION'timeout_logout'=time().

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions