View Full Version : Create new session during window.open
sonirajesh
Jul 4th 2007, 10:43 pm
Any one have idea on how to force the server to create a new session for child window instead of joining the existing session?
ie i want different SESSION should run in both parent & child window. moreover i donot want to destroy parent session.
Thanks
__________________
Rajesh Soni
bibel
Jul 4th 2007, 11:47 pm
That can not be done. You will have the same session for a domain in the new window as in the old one.
Greg Carnegie
Jul 5th 2007, 2:43 am
It depends what you mean by child session?
You can create another field in your session like:
$_SESSION['child'] and keep there new session data.
When PHP will check for session data you can make condition
if(@$_SESSION['child'])
{
// use child session data
} else {
// use old data
}
You actually can't create new session without destroying old session but you can "pretend" that there is a new session.
SUSH
Jul 5th 2007, 11:02 am
Take a look at the php website where they explained sessions. Under user "notes" someone did mention something like this, and they also posted a code. Not sure though...
If you could tell us what you need to do, may be we can suggest some alternative or something.
Bye :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.