Page 1 of 1

open new browser

Posted: Wed May 25, 2005 8:52 am
by gurjit
Hi all,

I want to beable to open a new internet explorer browser which will log a user in from a link and create a new session. However i do not want the old session destroyed or over written.

If i open a browser manually and login all the previous session details are stored and the new browser has new session values stored.

How can i do this from a <a href> link?

Posted: Wed May 25, 2005 9:56 am
by pickle
I'm not sure you can do that. You can open a new browser window, but it is just that - a new window, not a new instance of the program. To open a new program instance will probably require ActiveX.

Posted: Wed May 25, 2005 11:52 am
by Chris Corbyn
Why do you need a new session do you mind me asking?

You can always make $_SESSION a multidimensional array.

Code: Select all

session_start();
$_SESSION[0] = array();
$_SESSION[1] = array();

//On parent window
$_SESSION[0]['item_name'] = 'Carrots';

//On new window
$_SESSION[1]['item_name'] = 'Peas';

Posted: Wed May 25, 2005 12:42 pm
by Roja
d11wtq wrote: You can always make $_SESSION a multidimensional array.
! I never knew that. How incredibly cool!