I have RedHat 8, Apache 2, PHP 4.2.2 

My problem is with sessions, 

1. page
-index.html-
<html>
<body>
<form name="frmlogin" method="post" action="login.php">
    <input type="text" name="txtlogin">
    <input type="text" name="txtpassword">
    <input type="submit" name="Click">
</form>
</body>
</html>

2. page
-login.php-
<?php 
start_session();
...
some code for retrieve the user id from database in postgresql
$id_user = <some user id>;
...
$_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..
<script language="JavaScript">
    window.location="main.php"
</script>

3. page
<?php session_start(); 
echo $_SESSION["UID"]
?>
...
...
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.

Reply via email to