Determine a valid session.

Marc's Avatar
Newbie Member
How could i determinate if the session is valid, (didn't finished or closed or destroyed)? Also the thread http://www.go4expert.com/showthread.php?t=2 helped me a lot in learning PHP. Thanks for the links.
coderzone's Avatar, Join Date: Jul 2004
Team Leader
Code:
if(isset($_SESSION['ArrayName']))
{
  //Valid session
}
else
{
  //Invalid session
}
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by Marc
Also the thread http://www.go4expert.com/showthread.php?t=2 helped me a lot in learning PHP.
Thanks.