View Single Post
Old 04-27-2008, 07:05 PM   #7 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Quote:
Originally Posted by TlcAndres View Post
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..
__________________
Tanax is offline  
Reply With Quote