04-27-2008, 07:05 PM
|
#7 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
Quote:
Originally Posted by TlcAndres
Not exactly, Village made a point from my lack of proper wording. Example:
PHP Code:
ob_start();
if(!isset($_COOKIE['seperate'])){
$value = md5(time());
//check if it's already in there...its unlike but I don't do chance
$query = mysql_query($query)); //I assume you know how to do it.
$results = @reset(mysql_fetch_assoc($query));
if($results == ''){
setcookie('seperate',$value,time() * 360000);
}
}
Browsers expire cookies so I'd suggest regenerating the cookie on login along with recording it.
|
Actually, I have never before in my life dealt with cookies..  
__________________
|
|
|
|