"Steve" wrote
I need to be able to open another browser from within an already opened
browser with a completely new session (using the same session
variables).
First of all: note that different browsers behave differently. If I remember
correctly: Internet Explorer keeps the session cookies when opening a new
window (including when hitting Ctrl-N from an existing browser window), but
Netscape Navigator did not (though might do nowadays). However, starting a
new browser (it looks the same...) using the Start menu, neither IE nor NN
would share the session cookies with any other open window.
So, assuming the above is still valid: maybe it's good enough to instruct
the super user to open a new browser window using the Start menu...?
How can I have a new ID which does
not replace the old one? Is there a clean way to do this?
You are not forced to use the built-in PHP session mechanism. If you figger
out your own session id (like stored in a cookie with a different name, or
soley based on URL parameters, making it independent of any shared cookies)
then I guess you can explicitely set it using
http://php.net/session_id --
and from that point on keep using the built-in PHP session functionality
without destroying the other session. Maybe even
http://php.net/session_name
can do the trick without the need for your own session id; I guess PHP would
not destroy the existing session cookie when changing the name.
Note that you should use both functions prior to calling
http://php.net/session_start and that session.auto_start should be turned
off. Full details at
http://php.net/session
Keep us posted if you find a solution,
Adriaan.