Expired session?
Moderator: General Moderators
Expired session?
How can I easily check if user's session has expired?
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: Expired session?
Ree wrote:How can I easily check if user's session has expired?
Code: Select all
<?php
if ( isset($_SESSION['var']) )
{
//session is active
}
?>- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Been there, done that. Believe me I have been stumped by simpler..
By the way, the above code is a great way to fill up your screen and watch your scroll scroll bar shrink and shrink and shrink.everah wrote: Why is this loop crashing my script?Code: Select all
<?php $x = 10; while ($x < 100) { echo "Hi There"; } ?>
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
my personal favorite..in c++..
and could not figure ouyt why it never got out of that loop.... heh
Code: Select all
for (int i=0;i<5;l++)
{
do some mad wicked stuff..
}