Hello
I have devloped multiple application like
Yellow pages , dating script etc.
I use the same login method in all these .
And have same user name and password to login.
When i login to http://localhost/Yellow pages then go to dating http://localhost/dating it shows as logged_in my dating site where i did not login. If i know logout from yellow pages then login to dating site then go to yellow pages site it shows me logged in.
I thought each time u register a session its different.
I login structure code
session_start();
$email=$_POST["email"];
$pass=md5($_POST["pass"]);
$result=@mysql_query("SELECT * from ".$prefix."_user WHERE user_email='$email' AND user_pass='$pass'",$link) or die("Error".mysql_error());
$found=@mysql_num_rows($result);
if($found==1){
$row=@mysql_fetch_array($result);
$_SESSION["uid"]=$row["user_id"];
$_SESSION["uname"]=$row["user_name"];
$_SESSION["uemail"]=$row["user_email"];
$_SESSION["upass"]=$row["user_pass"];
$_SESSION["ip"]=$_SERVER["REMOTE_ADDR"];
$_SESSION["logged_in"]=true;
echo"<center>"._LOGINSUCCESS."</center>";
}else{
echo"<center>"._LOGINFAILED."</center>";
}
}