473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Session state and browser process

Hello,

I am running .NET SQL Session state (V 1.1 blah blah) on a IIS6 server.

The problem is that my application spawns a new window via javascript
once the user logs in.

The user logs in on the main page and the info is stored in a session.

However, on some browsers, the act of opening a new window, creates
another session on the server and the last session (where the goodies
are) is lost to that window.

What can I do?

Stefan

Jun 30 '06 #1
4 1429
you could switch to cookieless sessions, or use a hybrid approach. use a
cookie for session management, but allow a sessionid in the querystring used
to open the new window, that overrides the cookie. this would require you
writing your own session manager, but its not hard.

-- bruce (sqlwork.com)
"Stefan" <st****@noomail.com> wrote in message
news:11**********************@x69g2000cwx.googlegr oups.com...
Hello,

I am running .NET SQL Session state (V 1.1 blah blah) on a IIS6 server.

The problem is that my application spawns a new window via javascript
once the user logs in.

The user logs in on the main page and the info is stored in a session.

However, on some browsers, the act of opening a new window, creates
another session on the server and the last session (where the goodies
are) is lost to that window.

What can I do?

Stefan

Jun 30 '06 #2
Thanks Bruce,

but unfortuantley I can't use cookieless sessions states since I can't
pass stuff on the url (I am making AJAX like calls). I am thinking
that I will have to pass into each AJAX like call, a param being the
sessionID so I can recover the sessions (from my custom session DB).
I'll then scrap ASP.NET sessions altogether.

Thnks

Stefan

bruce barker (sqlwork.com) a écrit :
you could switch to cookieless sessions, or use a hybrid approach. use a
cookie for session management, but allow a sessionid in the querystring used
to open the new window, that overrides the cookie. this would require you
writing your own session manager, but its not hard.

-- bruce (sqlwork.com)
"Stefan" <st****@noomail.com> wrote in message
news:11**********************@x69g2000cwx.googlegr oups.com...
Hello,

I am running .NET SQL Session state (V 1.1 blah blah) on a IIS6 server.

The problem is that my application spawns a new window via javascript
once the user logs in.

The user logs in on the main page and the info is stored in a session.

However, on some browsers, the act of opening a new window, creates
another session on the server and the last session (where the goodies
are) is lost to that window.

What can I do?

Stefan


Jun 30 '06 #3
"The problem is that my application spawns a new window via javascript
once the user logs in."

Is this really a good idea?

By the way, what browsers instantiate a new session by using
javascript window.Open(). I've never heard of a browser
doing that?

--
Robbe Morris - 2004-2006 Microsoft MVP C#
Earn money answering .NET questions
http://www.eggheadcafe.com/forums/merit.asp

"Stefan" <st****@noomail.com> wrote in message
news:11**********************@x69g2000cwx.googlegr oups.com...
Hello,

I am running .NET SQL Session state (V 1.1 blah blah) on a IIS6 server.

The problem is that my application spawns a new window via javascript
once the user logs in.

The user logs in on the main page and the info is stored in a session.

However, on some browsers, the act of opening a new window, creates
another session on the server and the last session (where the goodies
are) is lost to that window.

What can I do?

Stefan

Jul 1 '06 #4
> Is this really a good idea?

I think it is; that is why I am doing it that way (strange question)
By the way, what browsers instantiate a new session by using
javascript window.Open(). I've never heard of a browser
doing that?
Explorer is doing it (but not on all computers, just some (great))

I too had never heard of this and didn't believe it, until I actually
saw it. Still I didn't believe it until I actually tested it several
times. Still don't want to believe it but it is fact

There must be a registery hack somewhere that forces explorer into a
new process (or just forcing a new sesison on the server somehow, I am
assuming explorer is in a new process, bcause it forces a new session
on the server. but I digress)

It is the strangest thing I have seen since the 'incident', (I have
never been able to play ping pong since)

Robbe Morris [C# MVP] a écrit :
"The problem is that my application spawns a new window via javascript
once the user logs in."

Is this really a good idea?

By the way, what browsers instantiate a new session by using
javascript window.Open(). I've never heard of a browser
doing that?

--
Robbe Morris - 2004-2006 Microsoft MVP C#
Earn money answering .NET questions
http://www.eggheadcafe.com/forums/merit.asp

"Stefan" <st****@noomail.com> wrote in message
news:11**********************@x69g2000cwx.googlegr oups.com...
Hello,

I am running .NET SQL Session state (V 1.1 blah blah) on a IIS6 server.

The problem is that my application spawns a new window via javascript
once the user logs in.

The user logs in on the main page and the info is stored in a session.

However, on some browsers, the act of opening a new window, creates
another session on the server and the last session (where the goodies
are) is lost to that window.

What can I do?

Stefan


Jul 1 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Microsoft | last post by:
I am using Session variables in my ASP application. I have tested the application on a Win2k professional and it works fine. When the same web app is installed on a win2k advanced server from the...
4
by: John Q. Smith | last post by:
I'm trying to find out some of the details behind OOP state management with SQL Server. For instance - how long does the session object live on any server? Is it created and destoyed with each...
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
8
by: ari | last post by:
hey all, i'm trying to make my app as stateless as possible. is it ok to create a dataset and store in viewstate and whenever the user decides to select a from that dataset, to move from...
9
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
5
by: Åženol Akbulak | last post by:
Hello; I use in my web application FormsAuthentication. Also I use Session state (InProc). When a user logged in, I can read Session parameters. (For example Session). Problem is that, when...
18
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
6
by: =?Utf-8?B?QnJlbmRhbiBLYXk=?= | last post by:
Hi there, We have an ASP.Net application that is generating huge numbers of Context Switches when a certain number of active users are present. We tried changing the configuration of the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.