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:[EMAIL PROTECTED]]
> Sent: Saturday, 20 January 2001 3:13 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-DB] Cookies on a Macintosh
>
>
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] ("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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]