RE: [PHP] Session With Cookies

2001-02-05 Thread Eelco de Vries
no offense for anyone at all. I was just wondering myself and threw it in the group discussion. Eelco. > I never wanted this question to be an offense for anyone. I thank you all > for your answers. > > Regards > PHPLover > > Lux <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMA

Re: [PHP] Session With Cookies

2001-02-04 Thread phpLover
I never wanted this question to be an offense for anyone. I thank you all for your answers. Regards PHPLover Lux <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It's unlikely I suppose, but there's a must-have book you should look at > if you want info on hack

Re: [PHP] Session With Cookies

2001-02-04 Thread Lux
It's unlikely I suppose, but there's a must-have book you should look at if you want info on hacks, including browser hacks (Hacking Exposed: Network Security Secrets and Solutions, 2nd Edition). The cookie hack that comes to mind only works in IE or MS products (but that's only what, 90% of

RE: [PHP] Session With Cookies

2001-02-04 Thread Eelco de Vries
> > In case of login/password required sites, I use the login and > password as > > cookie values and have _no_ expiredate set. Every time a request is made > > _both_ cookie values (login and password) are checked with that on the > > server. > > I would hope that you are not storing and matching

Re: [PHP] Session With Cookies

2001-02-04 Thread Julie Meloni
Eelco de Vries wrote: > This will store a cookie with a userid and an unique number ($token) as > session-id (??). > If I'm not mistaken, this session-id is not checked here. Thus serves no > purose. Anybody who retrieve the cookie from the cookie file on the system > can use it to resume the ses

RE: [PHP] Session With Cookies

2001-02-04 Thread Eelco de Vries
This will store a cookie with a userid and an unique number ($token) as session-id (??). If I'm not mistaken, this session-id is not checked here. Thus serves no purose. Anybody who retrieve the cookie from the cookie file on the system can use it to resume the session (if done within the set 360

Re: [PHP] Session With Cookies

2001-02-03 Thread Shane McBride
Try this: // Set Cookie if not already set if (!isset($user_id)) { $token = md5(uniqid(rand())); setcookie("user_id", $token, time()+3600,"/",".yourdomain.com"); } look at the setcookie function on php.net to figure out all the parameters: http://www.php.net/manual/en/function.setcookie.ph