473,598 Members | 3,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1438
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.goo glegroups.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.goo glegroups.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.goo glegroups.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.goo glegroups.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
2840
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 client browser when the app is accessed the session variable returns null inspite of a value being already set. I have checked the IIS enable session state settings. When i use the server machine as client and access the app as localhost then...
4
3991
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 page request? - will each reading of a session variable cause a round trip to the DB server? or does the complete session live within the HttpContext object? - when asp.net session state is enabled (in any mode), after a session has been created,...
10
3495
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 more time I have on a session? If I do a refresh, does reset the session clock? Do you have have to go to another page to reset the session timeout or will a postback also do it? This is important as we have a few pages that a user
8
1739
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 viewstate, to session, and on the details page back to viewstate. Or does that sound like too much work? thanks, ari
9
5300
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 copy paste (I hear this will improve in ASP.Net 2 via master pages). When I navigate from one page to the next the header and footer user controls lose their state because they are effectively different instances of the user control. Is there...
5
4835
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 user close the browser window then open a new browser, FormsAuthentication reads from cookie and user logs in. Althought user logged in, session parameter is null.
18
3426
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 File-New-Window creates an instance of IE in the same process with the same SessionID as the parent window is in big trouble. This fundamentally restricts the usefullness of using session state management. I probably missed it somewhere - can...
11
3634
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 method has the WebMethodAttribute.EnableSession set to true. When I run the test page the session is maintained. However, using a console application, in between setting the string value and attempting to
6
1940
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 Application Pool to use a Web Garden and the number of Context Switches decreased by more than 95% (that's the good news). Our problem is that we have something in our session state that cannot be serialized and therefore we cannot use StateServer for...
0
7987
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8392
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8050
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6718
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5850
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3939
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2412
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1504
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1250
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.