Re: Re: New window, new session
| From: | Justin French | Date: | Tue, 25 Jun 2002 11:12:52 +0000 |
| Subject: | Re: Re: New window, new session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103756@lists.php.net to get a copy of this message | ||
Would it help if you opened the new window with some sort of GET variable
which alerted PHP that it has to kill the existing session, and fire up a
new one with the current user?
window.open('myPopUpPage.php?action=killSession')
???
Justin French
on 25/06/02 9:16 PM, George Whiffen (george@intellnet.net.uk) wrote:
> Riaan Stander wrote:
>
>> Hi there
>>
>> I know this is not a php specific question, but I don't know where else to
>> ask.
>>
>> I've got the following situation. The website I'm currently working on has
>> got a administration page where the administration user must be able to
>> login as all the users available. It is fine getting all the data, but I
>> want to open the login in a new browser window, otherwise the administrator
>> has go to re-login with his account. Thus, I need to somehow open a new
>> browser window, with a new session id. When somebody logs in I check to see
>> if there is already a session variable registered. If there is, I unset this
>> variable, and register a new one for the login account. You can see where my
>> problem is. At this stage I'm using some java script "window.open()" to open
>> the new window, but it is still with the save session id.
>>
>> If any of you can tell me how to open a new browser window with a new
>> session id, I would greatly appreciate it.
>>
>> Thanx
>> Riaan