PDA

View Full Version : Two SessionID for single user


al_mdharris
09-25-2004, 07:31 AM
Hi Everyone,


My ASP page contains 5 page links. Each link open a new window. My question is the child window 2 and 3 opend with new session id and remaining 3 child window(win1, win4, win5 ) should have a same session id as Parant Session id. Is it Passible in ASP? Please guide me.

Thanks.
Harris

raf
09-25-2004, 08:09 AM
welcome here!

the sessionID is specific for a client. the server has no notion of the window that reqiuests the page and where the response is displayed in, so all windows "get the same sessionID" (actually, the client gets the sessionID since the sessionID is just sent inside the HTTP-header).

A possible hack is to make sure that the FIRST page that he client request from your site, is a framepage, and that each frame contains an ASP-page. The webserver will start a new session for each frame. You can then open new windows from one of the frames, and they'll contain a different sessionID then a window opened from another frame.
This is however unintended behaviour of the webserver and could very well be fixed in the future (maybe it's already fixed...)

Why do you need multiple sessions for one client??