| Herman Cremer on Thu, 27 Feb 2003 14:20:29 +0200 (SAST) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| [Linux dev] php session |
Helo.
I have 2 sites, and they are running as subdirectories on one domain.
The apps are written in PHP
say :
http://mydomain.com/app1
and
http://mydomain.com/app2
If I log in at app1 , I am also logged in on app2
How can I setup different session variables for the
two different directories ?
At the moment it is only different per domain,
which is the default way that PHP does its sessions..
Right now I am setting up Session variables as:
session_register("USERNAME");
$_SESSION["USERNAME"] = mysql_result($result,0,"Username");
Thanks if anyone can help me out...
Herman
------------------------------
Sent by Infinite Technologies.