I have an asp.net web application that uses session variables to store
user information (username, security areas, configuration data). When
the user logs into the system I store all of this information in a
class and then dump it into a session variable. The timeout on the
server is set to 2hrs. Every now and then (5min-30min) the web server
will lose the session variable. This is very inconsistent and doesn't
appear to have an associated pattern. Has anyone else come across this
issue and determined the root cause?
I've found a lot of posts that describe this issue but none that
actually pinpoint the cause or solution.
Please don't recommend that I use cookies, some other solution or
question why I'm storing this information in a session variable. The
application is structured in this way to meet specific user/regulatory
requirements and user imposed constraints.
Thanks!
Nate 2 2424
Are you sure that the user keeps interacting with your web site for 2 hrs
after he logs in? Typically, I guess you maintain one session class object
per user and populates this class once the user logs in. Once the user
terminates his session (by logging out and closing the browser), it is lost.
That is how a session is defined logically.
"Nate Spillson" <na********@spi llson.com> wrote in message
news:1c******** *************** **@posting.goog le.com... I have an asp.net web application that uses session variables to store user information (username, security areas, configuration data). When the user logs into the system I store all of this information in a class and then dump it into a session variable. The timeout on the server is set to 2hrs. Every now and then (5min-30min) the web server will lose the session variable. This is very inconsistent and doesn't appear to have an associated pattern. Has anyone else come across this issue and determined the root cause? I've found a lot of posts that describe this issue but none that actually pinpoint the cause or solution.
Please don't recommend that I use cookies, some other solution or question why I'm storing this information in a session variable. The application is structured in this way to meet specific user/regulatory requirements and user imposed constraints.
Thanks! Nate
It really depends on what you mean by "logging out and closing the browser".
If there is code to call Session.Abandon () in the sign out code, then yes,
this ends the session. But you don't know if there is.
Simply closing the browser does not end the session. The session continues
until the timeout.
However, any new browser instances will create a new session - while the
original one is still alive until the timeout occurrs.
Things that can occur an applications restart:
1) chaging DLL's, web.config, etc on the server
2) certain antivirus scanners that scan the above files, thus triggering a
restart
"Rao TRN" <tr*******@hotm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. Are you sure that the user keeps interacting with your web site for 2 hrs after he logs in? Typically, I guess you maintain one session class object per user and populates this class once the user logs in. Once the user terminates his session (by logging out and closing the browser), it is
lost. That is how a session is defined logically.
"Nate Spillson" <na********@spi llson.com> wrote in message news:1c******** *************** **@posting.goog le.com... I have an asp.net web application that uses session variables to store user information (username, security areas, configuration data). When the user logs into the system I store all of this information in a class and then dump it into a session variable. The timeout on the server is set to 2hrs. Every now and then (5min-30min) the web server will lose the session variable. This is very inconsistent and doesn't appear to have an associated pattern. Has anyone else come across this issue and determined the root cause? I've found a lot of posts that describe this issue but none that actually pinpoint the cause or solution.
Please don't recommend that I use cookies, some other solution or question why I'm storing this information in a session variable. The application is structured in this way to meet specific user/regulatory requirements and user imposed constraints.
Thanks! Nate
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Scott Lyon |
last post by:
I'm maintaining (read: I didn't write it, nor do I have the time to spend to
rewrite it) an application that is suddenly giving me grief.
The reason I say suddenly, is because we're in the process of transitioning
the server on which it runs from Microsoft Windows 2000 Server, to 2003
server (going from IIS 5 to IIS 6). This problem hasn't really occurred on
the 2000 server machine, but it's happening MUCH more on the new 2003 box
(not...
|
by: Al Jones |
last post by:
This is a repost form the vbscript newgroup - if this isn't the appropriate
group would you point me toward one that is.
Basically, I seem to be losing session data part way though preparing an
email from (possibly) three seperate forms.
the following code is the end of a routine which stashes data from the first
form
off to session variables and then redirects itself to the proper form /
procedure depending upon the state of two...
|
by: Marc Rivait |
last post by:
Here is a very interesting scenario.
I have a simple test application that loads a page and sets a session
variable on the load event. On the first page there is a link to a second
page. The load event of the second page displays the value of the session
variable.
The problem is that when I use a W2k machine, this little test works
perfect. Session variable value is displayed on the second page. However,
when I use my XPPro...
|
by: Stephen |
last post by:
I have a .NET (1.1 framework) application that is losing a
session variable on only a few PC's. The main page is
loading up in a frame in a Portal application. On the
Page_Load it stores an object with the user id and
password into the session.
The web page includes a set of links. When the user
clicks on a link, another page within this application is
opened in a new window. On the Page_Load of this second
page, I am retrieving...
|
by: Joe Molloy |
last post by:
Hi,
This isn't a mission critical question but I thought I'dl throw it out there
for your feedback as it's a bit curious.
I have developed a shopping cart for an application I'm working on which is
loosely based on the e-commerce example in the quickstarts tutorial.
In the cart display I have provided functionality so that when a user clicks
on a product name a popup is opened with the full product details displayed.
| |
by: Werner |
last post by:
Hi Patrick!
Can you give an example of how to use a frameset inside an aspx-file?
When I create a new frameset in Visual Studio.Net it just gives me a htm-File.
Or give me a link where I can find one?
Thanks
Werner
P.S. Somehow I did not manage to do a followup in Googles newsgroups.
|
by: Keith-Earl |
last post by:
I have been writing ASP.NET apps since the RTM build and have never seen
this. I built a simple app that uses session variables on my DEV laptop.
All runs well. I have a simple toggle routine that checks the status of a
Session variable. I keep losing the value of the variable. When I trace the
page it is there, but it is gone next postback.
Also, I use three tier objects and store my DataManager object in a session
variable. It is...
|
by: Adrian Parker |
last post by:
We have a website that works everywhere but on a few PCs on this one site..
Asp.Net 1.1
Server = Windows 2003
Client = XP
In the web.config we use - cookieless="false"
in the browser settings they have "Always allow session cookies" set to true
When the browser connects to the website the first page sets a session
variable called "user_ref" to something and then calls another page. If on
|
by: TRB_NV |
last post by:
I'm losing information from my Session when I change pages or start the same
page over again. I simplified the code so the example is really clear. The
sample code that follows is supposed to generate a random number and put it
into an Array and store it in the Session variable and then when it runs the
next time, generate another random number and display the entire Array
contents, by pulling the information out of the Session. I'd...
|
by: tharika_c |
last post by:
Hi,
We have a simple ASP.NET web application where one of the Session
variables, called Session("SSO_ID") gets created and assigned a value
(equal to the HTTP_HRID request variable value), inside the
Session_Start event of the global.asax.vb file, since this variable is
accessed by almost all the pages in the project. Besides this
variable, there are other session variables which are set in the
various aspx pages, as needed.
|
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...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
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...
| |