Re: Header, Directory, and SESSIONs

From: Date: Sun, 22 Jun 2003 06:31:56 +0000
Subject: Re: Header, Directory, and SESSIONs
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152428@lists.php.net to get a copy of this message
As I said before that I don't want the same user to confuse in which part of the site he is ... because as I said it is same PHP files but dealing with different databases and tables.. so I can't let him jump in between , and cause some confusion and data mess when he's entering data.. PLEASE COMMENTS "Andrew Warner" <awarner@calendarserve.com> wrote in message news:a05210601bb1a79950205@[10.0.1.7]... > At 9:43 AM +0300 6/21/03, nabil wrote: > >4- I want if any user jumped to the other directory and logged in with the > >correct requested password TO HAVE THE FIRST SESSION UNREGISTERED > >automatically, so he can't be logged in in both at same time.. and keep only > >the new.. and ofcourse have to re logging if he jumped back to the first > >one... > > > If the user has the credentials to access both directories, why not > let him be logged into both directories, provided he logs into both > separately? > You can confine cookie containing session id to the site _and_ > directory user logged into so that you have have separate sessions > for both: > > in your login routine in each directory: > > session_set_cookie_params (0, dirname($_SERVER['SCRIPT_NAME']).'/'); > session_start(); > > Now when user logs into different directory, php won't even know > about session cookie from other directory. This is my understanding, > anyway. > > andrew > >

« previous php.general (#152428) next »