RE: [PHP-DB] Cookies on a Macintosh

From: Date: Sat, 20 Jan 2001 00:08:13 +0000
Subject: RE: [PHP-DB] Cookies on a Macintosh
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-6003@lists.php.net to get a copy of this message
G'day! A1: $ran3 is a random number/letter combination I'm using to identify a user. It sets that random value in the database when they log in using their username/password. All pages contained within check that number against the database. Not the most secure of methods, but I'm only using php3 which hasn't got the security features of 4. And it's definately better than using their password in the cookie. After they log out, the random value is changed. It's enclosed in quotes because that's the way my PHP book does it :P A2: Because I can see the cookie on the macintosh cookie list. Which means it's being set, but the format probably isn't right for IE. I think Andrew's (thanks!) suggestion might be the go though, I'll give that a try when I'm working on it again. Thanks all:) Best Regards, Bob Irwin Domain & Server Admin Planet Netcom Best Regards, Bob Irwin Domain & Server Admin Planet Netcom > -----Original Message----- > From: Jerry [mailto:jerry@acusd.edu] > Sent: Saturday, 20 January 2001 3:13 AM > To: php-db@lists.php.net > Subject: Re: [PHP-DB] Cookies on a Macintosh > > > In article <OKEPKDHNMFCJMHAPHHIKAEPICLAA.noodles@pnc.com.au>, > noodles@pnc.com.au ("Noodles Grizzly") wrote: > > I'm using the setcookie function with the follwing. > > > > setcookie("randint", "$ran3", time()+9000); > > > > It sets the cookie, but refuses to use the variable contained within. > > I can't find any reference to it in the books I have, nor in the > > online manual. > > > > Anyone know why this might be happening? > > What does "$ran3" contain, and why is it enclosed in quotes? (It > shouldn't matter, but I'm interested.) > > Also, how do you know it sets the cookie if it refuses to use the > variable? How does it refuse to use the variable in a manner that lets > you know it set the cookie? > > Jerry > -- > http://www.hoboes.com/jerry/ > "Give a man a fish and you feed him for a day. Teach him to fish, and you've > depleted the lake."--It Isn't Murder If They're Yankees > (http://www.hoboes.com/jerry/Murder/) > > -- > 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 (#6003) next »