open new browser

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
gurjit
Forum Contributor
Posts: 314
Joined: Thu May 15, 2003 11:53 am
Location: UK

open new browser

Post 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?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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';
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

d11wtq wrote: You can always make $_SESSION a multidimensional array.
! I never knew that. How incredibly cool!
Post Reply