unique browser session

  • Thread starter Thread starter greg
  • Start date Start date
G

greg

Hi

Maybe it is a newbie question but...

When I have two browser windows even popups I noticed they share ALL cookies
even session ones

What can I use to distinguish between them?
Is asp.net session is such a thing?

Thanks,
GSL
 
greg said:
Hi

Maybe it is a newbie question but...

When I have two browser windows even popups I noticed they share ALL
cookies even session ones

What can I use to distinguish between them?

I'm not aware of any practical solution using cookies for session tracking.

Is asp.net session is such a thing?

No, it's bound to the session cookie that would be shared by all browser
windows in your scenario.

Cheers,
 
And the need is ?

I see no other option than to add your own ID in the cookie name so that you
can have two cookies instead of a single cookie....

Patrice
 
Patrice said:
And the need is ?

I see no other option than to add your own ID in the cookie name so
that you can have two cookies instead of a single cookie....

This won't help, since every cookie will be shared by multiple browser
windows.

Cheers,
 
And ? Each window will access its "own" cookie and won't care having other
cookies available.

I guess the original poster should tell us instead its exact need from a non
technical point of view as I suggested earlier...

--
 
Patrice said:
And ? Each window will access its "own" cookie and won't care having
other cookies available.

Only if these windows belong to *distinct* browser application instances,
which is not teh case if you simply use the "new window" menu item. And *if*
you have distinct browers instances running (which don't share cookies),
using additional cookies to identify sessions is pointless.

Cheers,
 
Was not clear for me if he wanted to distinguish between cookies having the
same "name" in distinct windows. Or if it was to identifity distinct ASP.NET
sessions.

If this is to distinguish between sessions, I would first wonder if it can
be included as part of the app. In some apps, instead of forcing a user to
connectt to the same application under a distinct identity to perform
operations, a user is able to grant rights to another user on his folder,
mailbox or whatever else so that this user can perform intended operations
without having to run two distinct sessions... Cleaner IMO.

Once again we need the overall goal, and I won't take this thread any
further anyway without more information...

Patrice
--
 
browsers generally follow the following logic.

if the window is created from the current instance of the browser through a
popup of new window or the user creates a copy though new window menu pick,
all windows share the same session cookies.

if a new instance of the browser is started (say from the start menu), it
will have a different set of session cookies.

-- bruce (sqlwork.com)
 
Back
Top