[eluser]Samus[/eluser]
[quote author="bleu" date="1338015616"]I want his php session to get over after 30 mins of inactivity other wise if he is using the website he should be logged in.
The above example does not seem to take into account the user's inactivity[/quote]
Then reset his session after he clicks a page or whatever. Simply by running the code above again