ok, i've been trying to figure this one out for a while now. everytime i do a successful login i expect that my $_SESSION variables will be carried to the new window, but instead it doesn't at all.
<?php
include ('include.inc');
if (isset($user_name)) {
db_connect();
if ($user_query = mysql_query("SELECT user_status FROM im_users WHERE (user_name = '$user_name') AND (user_pass = '$user_pass')")) {
session_start();
$_SESSION["user_name"] = $user_name;
echo ("<script>");
echo ("window.open('messenger.php', 'messenger', config='height=400, width=200, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, directories=no, status=no');");
echo ("</script>");
}
} else {
?>
<form action="login.php" method="post">
User Name : <input type="text" name="user_name"><br>
Passowrd : <input type="password" name="user_pass"><br>
<input type="submit" value="GO!">
</form>
<?php
}
?>
please help me understand why i can't call $_SESSION['user_name'] from other pages??!