sessions help, PLEASE!!!!
Posted: Fri Jan 16, 2004 4:22 pm
heres my code:
ok, so it should check to see if this session has been made before, then if not (and the ip is correct) 'do all the stuff'.
the problem is, it always 'does all the stuff', the session never gets assigned a value or soemthing... please help...
Code: Select all
<?php
session_start();
header("Cache-control: private");
if(!$_SESSION['count'])
{
if ( getenv("REMOTE_ADDR") != $row[ip_address] )
{
$_SESSION['count'] = 1;
//do all the stuff
}
}
?>the problem is, it always 'does all the stuff', the session never gets assigned a value or soemthing... please help...