RE: [PHP-DB] tracking users...

From: Date: Mon, 21 Jan 2002 21:08:59 +0000
Subject: RE: [PHP-DB] tracking users...
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-16038@lists.php.net to get a copy of this message
Hi I use $sessionID = md5(uniqid(rand())); setcookie (sessionID , $sessionID ,0 , "" , "" ,0); which works hth Peter > -----Original Message----- > From: jas [mailto:jlgerfen@hotmail.com] > Sent: 22 January 2002 06:51 > To: php-db@lists.php.net > Subject: [PHP-DB] tracking users... > > > I am fairly new to PHP and have setup a site that connects to a > MySQL db to > store different information from our users, however what I would like to > setup is something that I could place on a few pages to track users for > demographic purposes. What I need to do is as a page is visited I need to > generate a random alpha numeric identifier to be used as a > session variable > for a cookie and also have that cookie's information be placed > into a MySQL > database for later retrieval. If anyone has a good resource tutorial on > this type of function I would greatly appriciate it. Oh and yes > I have done > quite a bit of research on php.net on both the session() and the > setcookie() > functions. =) Thanks again. Jas > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#16038) next »