[PHP] Problem with sessions

2003-02-18 Thread Sidar Lopez Cruz
I have RedHat 8, Apache 2, PHP 4.2.2 

My problem is with sessions, 

1. page
-index.html-










2. page
-login.php-
;
...
$_SESSION["UID"] = $id_usuario;
?>
from here i am to do a redirec to another page called, main.php where is the
menu options i do it so..

window.location="main.php"


3. page

...
...
some menu options...
...
...




This work very well, but when i open twice mozilla browsers and login with diferent 
users, i always keep the same session id, and sessions vars for two browsers...
i don't know how to resolve this problem... 

I NEED HELP


:-) Sidar Lopez Cruz
- Cero Riesgo, S.A.



[PHP] Sessions or Cookies?

2003-02-19 Thread Sidar Lopez Cruz
1, What i got to do for manages sessions in my RedHat 8, 
2, What i got to do for manages cookies in my RedHat 8, 

I try to use session vars, but no work

I try to use cookies, and when i open two browser, the same cookie is in two 
browser... this is a problem,

I need to carry the user_id in my site, during the cookie life, when use cookies, the 
problems begin... always got the same cookie, in any browser that i open...



:-) Sidar Lopez Cruz
- Cero Riesgo, S.A.