Expired session?
Posted: Wed Nov 02, 2005 1:41 pm
How can I easily check if user's session has expired?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Ree wrote:How can I easily check if user's session has expired?
Code: Select all
<?php
if ( isset($_SESSION['var']) )
{
//session is active
}
?>LOL.... I know the feelingRee wrote:So simple... Why haven't I thought of this...
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"; } ?>
Code: Select all
for (int i=0;i<5;l++)
{
do some mad wicked stuff..
}