session variable in other directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

i have got a little problem. On my homepage is a login. If the username 
und password is correct i register the $_Session variables

if (mysql_num_rows ($res) > 0)
{
  $ligne = mysql_fetch_object ($res);

//  session_register ("x1","x2","x3","x4","x5");
  $_SESSION["x1"] = "true";
  $_SESSION["x2"] = $ligne->name;
  $_SESSION["x3"] = $ligne->mail;
  $_SESSION["x4"] = $ligne->kategorie;
  $_SESSION["x5"] = $ligne->rechte;

In all php files in the same directory i can access this variables, but if 
i am in another directory i does not work. if have already read the 
session_registor is old and should not be used.

I hope some can help me

thx

norman

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux