View Single Post
Old 04-27-2008, 05:00 PM   #6 (permalink)
TlcAndres
The Addict
 
Join Date: Nov 2007
Posts: 264
Thanks: 2
TlcAndres is on a distinguished road
Default

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.
__________________
"What everyone seems to forget is that while knowledge certainly is something - it's the implementation of knowledge that brings power" - Andres Galindo.
TlcAndres is offline  
Reply With Quote
The Following User Says Thank You to TlcAndres For This Useful Post:
Tanax (04-27-2008)