467,145 Members | 996 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,145 developers. It's quick & easy.

How to get two sessions on same workstation

I am trying to get two seperate sessions on the same workstation. I have
put the sessionid as a label on the page and I get only one sessionid if I
open two "sessions" in seperate IE executions. I also get the same if I
embed a webbrowser control into a windows application.

Any ideas?

Thanks
Lloyd Sheen

Dec 6 '07 #1
  • viewed: 1222
Share:
7 Replies
Have you tried this using one IE browser and the other Firefox?

"Lloyd Sheen" wrote:
I am trying to get two seperate sessions on the same workstation. I have
put the sessionid as a label on the page and I get only one sessionid if I
open two "sessions" in seperate IE executions. I also get the same if I
embed a webbrowser control into a windows application.

Any ideas?

Thanks
Lloyd Sheen

Dec 6 '07 #2
switch to cookieless sessions, as the broser shares the session cookie.

-- bruce (sqlwork.com)

Lloyd Sheen wrote:
I am trying to get two seperate sessions on the same workstation. I
have put the sessionid as a label on the page and I get only one
sessionid if I open two "sessions" in seperate IE executions. I also
get the same if I embed a webbrowser control into a windows application.

Any ideas?

Thanks
Lloyd Sheen
Dec 6 '07 #3

"Jacques" <Ja*****@discussions.microsoft.comwrote in message
news:CF**********************************@microsof t.com...
Have you tried this using one IE browser and the other Firefox?

"Lloyd Sheen" wrote:
>I am trying to get two seperate sessions on the same workstation. I have
put the sessionid as a label on the page and I get only one sessionid if
I
open two "sessions" in seperate IE executions. I also get the same if I
embed a webbrowser control into a windows application.

Any ideas?

Thanks
Lloyd Sheen

Not an option.

LS

Dec 6 '07 #4

"bruce barker" <no****@nospam.comwrote in message
news:eG**************@TK2MSFTNGP06.phx.gbl...
switch to cookieless sessions, as the broser shares the session cookie.

-- bruce (sqlwork.com)

Lloyd Sheen wrote:
>I am trying to get two seperate sessions on the same workstation. I have
put the sessionid as a label on the page and I get only one sessionid if
I open two "sessions" in seperate IE executions. I also get the same if
I embed a webbrowser control into a windows application.

Any ideas?

Thanks
Lloyd Sheen
Not an option.

LS

Dec 6 '07 #5
as the browser will share the session cookie (you can not change this),
you will need to write you own session handler. you can store your
session data in a collection in session, and store a key in a hidden
field on the page. be sure to include the key in the url on a redirect.

-- bruce (sqlwork.com)

Lloyd Sheen wrote:
>
"bruce barker" <no****@nospam.comwrote in message
news:eG**************@TK2MSFTNGP06.phx.gbl...
>switch to cookieless sessions, as the broser shares the session cookie.

-- bruce (sqlwork.com)

Lloyd Sheen wrote:
>>I am trying to get two seperate sessions on the same workstation. I
have put the sessionid as a label on the page and I get only one
sessionid if I open two "sessions" in seperate IE executions. I also
get the same if I embed a webbrowser control into a windows application.

Any ideas?

Thanks
Lloyd Sheen

Not an option.

LS
Dec 6 '07 #6
the session cookies are shared between all the IE windows owned by one
specific iexplore.exe (e.g using open new window etc)

each time you open up internet explorer from the start menu (or just
start/run iexplore), you will get a new iexplore.exe which will not share
sessions with the others

I use this all the time for testing web apps

"Lloyd Sheen" <a@b.cwrote in message
news:eC**************@TK2MSFTNGP03.phx.gbl...
>I am trying to get two seperate sessions on the same workstation. I have
put the sessionid as a label on the page and I get only one sessionid if I
open two "sessions" in seperate IE executions. I also get the same if I
embed a webbrowser control into a windows application.

Any ideas?

Thanks
Lloyd Sheen

Dec 6 '07 #7

"bruce barker" <no****@nospam.comwrote in message
news:uR**************@TK2MSFTNGP06.phx.gbl...
as the browser will share the session cookie (you can not change this),
you will need to write you own session handler. you can store your session
data in a collection in session, and store a key in a hidden field on the
page. be sure to include the key in the url on a redirect.

-- bruce (sqlwork.com)

Lloyd Sheen wrote:
>>
"bruce barker" <no****@nospam.comwrote in message
news:eG**************@TK2MSFTNGP06.phx.gbl...
>>switch to cookieless sessions, as the broser shares the session cookie.

-- bruce (sqlwork.com)

Lloyd Sheen wrote:
I am trying to get two seperate sessions on the same workstation. I
have put the sessionid as a label on the page and I get only one
sessionid if I open two "sessions" in seperate IE executions. I also
get the same if I embed a webbrowser control into a windows
application.

Any ideas?

Thanks
Lloyd Sheen

Not an option.

LS
Seems that a CTL-F5 will do the trick.

Thanks
LS

Dec 6 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by jing_li | last post: by
9 posts views Thread by E. Will | last post: by
22 posts views Thread by Theo | last post: by
1 post views Thread by windandwaves | last post: by
4 posts views Thread by vesely@tana.it | last post: by
3 posts views Thread by Maxime Ducharme | last post: by
6 posts views Thread by Daniel Walzenbach | last post: by
22 posts views Thread by magic_hat60622 | last post: by
3 posts views Thread by Jon Slaughter | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.