Hello !!!
I have two questions about sessions:
1_)Is possible to use sessions variables with include files?
2_)Is possible to use a remote script to retrieve sessions varibles to other domain ?
eg:
<form method="POST" action="http://www.domain1.com/login.php">
<p><input type="text" name="userid" size="20"></p>
<p><input type="password" name="password" size="20"></p>
<p><input type="submit" value="Submeter"></p>
</form>
[code]
[code]
$res = @mysql_query("select userid, password from users where userid='$userid' and password='$senha'");
if(@mysql_num_rows($res)!=0){
session_register("session");
$session["user"] = $userid;
header("Location: http://www.domain2.com/index.php");
Then I want to use start_session(); in domain2.com/index.php to retrieve varibles ...
Any suggestion ???
Best Regards,
marcoBR
...sorry 4 my english !!!