473,663 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session state being lost

Hello,

I have a web application running in two configurations:

1. On my local machine running in debug and release mode
2. On a shared, hosted, machine in release mode

On my local machine, the app never loses its session
state (which is how I manage the login state for the app).

On the shared machine, the session state seems to be
reset intermittently. I see this manifested as a user
being "kicked back" to the login screen yet being able to
go "back" to the previous protected page and still have
the session available.

My application stores some data in the session to
identify the user that is currently logged into the app.
I detect when the user is not logged in by doing the
following:

1. Check if the session is new or not
2. Check for the existence of the login state

So I "think" the session is being marked as 'new' on the
shared server, but the login state object is still in the
session.

My configuration on both types of configuration is:

Session mode=InProc
Sesion memory = 1 GB (on the shared server)
ASP.NET version=1.1

Does anyone know what things I should look at on the
shared server in terms of configuration or what-not? I
tried using "forms" based authentication, but could not
ever get it to work properly for the two types of logins
I need to support.

Thanks

-- Jacob Anderson
jw*@beyond-ordinary.com

Nov 17 '05 #1
10 2056
There some virus scanners, what touch web.config or some other important
app files , and force application restart and session lost.
--
--
Dmitry Andreev. MCSD.NET

"Jacob Anderson" <jw*@beyond-ordinary.com> wrote in message
news:03******** *************** *****@phx.gbl.. .
Hello,

I have a web application running in two configurations:

1. On my local machine running in debug and release mode
2. On a shared, hosted, machine in release mode

On my local machine, the app never loses its session
state (which is how I manage the login state for the app).

On the shared machine, the session state seems to be
reset intermittently. I see this manifested as a user
being "kicked back" to the login screen yet being able to
go "back" to the previous protected page and still have
the session available.

My application stores some data in the session to
identify the user that is currently logged into the app.
I detect when the user is not logged in by doing the
following:

1. Check if the session is new or not
2. Check for the existence of the login state

So I "think" the session is being marked as 'new' on the
shared server, but the login state object is still in the
session.

My configuration on both types of configuration is:

Session mode=InProc
Sesion memory = 1 GB (on the shared server)
ASP.NET version=1.1

Does anyone know what things I should look at on the
shared server in terms of configuration or what-not? I
tried using "forms" based authentication, but could not
ever get it to work properly for the two types of logins
I need to support.

Thanks

-- Jacob Anderson
jw*@beyond-ordinary.com

Nov 17 '05 #2
I am having similar problems at a shared hosting site and have not as yet
found a solution.

Where does one set the Session Memory?

"Jacob Anderson" <jw*@beyond-ordinary.com> wrote in message
news:03******** *************** *****@phx.gbl.. .
Hello,

I have a web application running in two configurations:

1. On my local machine running in debug and release mode
2. On a shared, hosted, machine in release mode

On my local machine, the app never loses its session
state (which is how I manage the login state for the app).

On the shared machine, the session state seems to be
reset intermittently. I see this manifested as a user
being "kicked back" to the login screen yet being able to
go "back" to the previous protected page and still have
the session available.
...clipped...
Session mode=InProc
Sesion memory = 1 GB (on the shared server)
ASP.NET version=1.1

Nov 17 '05 #3
Put session in an outofproc server. Sql server. Session problems are very
common with asp.net all versions. It goes away the moment u use sql server.
Maybe ms wants to force people to buy it.

"Jacob Anderson" <jw*@beyond-ordinary.com> wrote in message
news:03******** *************** *****@phx.gbl.. .
Hello,

I have a web application running in two configurations:

1. On my local machine running in debug and release mode
2. On a shared, hosted, machine in release mode

On my local machine, the app never loses its session
state (which is how I manage the login state for the app).

On the shared machine, the session state seems to be
reset intermittently. I see this manifested as a user
being "kicked back" to the login screen yet being able to
go "back" to the previous protected page and still have
the session available.

My application stores some data in the session to
identify the user that is currently logged into the app.
I detect when the user is not logged in by doing the
following:

1. Check if the session is new or not
2. Check for the existence of the login state

So I "think" the session is being marked as 'new' on the
shared server, but the login state object is still in the
session.

My configuration on both types of configuration is:

Session mode=InProc
Sesion memory = 1 GB (on the shared server)
ASP.NET version=1.1

Does anyone know what things I should look at on the
shared server in terms of configuration or what-not? I
tried using "forms" based authentication, but could not
ever get it to work properly for the two types of logins
I need to support.

Thanks

-- Jacob Anderson
jw*@beyond-ordinary.com

Nov 17 '05 #4
But setting SessionState to SQLServer is not really an option for most
shared hosting sites.

"Rajesh.V" <Ra***********@ hotmail.com> wrote in message
news:ud******** ******@tk2msftn gp13.phx.gbl...
Put session in an outofproc server. Sql server. Session problems are very
common with asp.net all versions. It goes away the moment u use sql server. Maybe ms wants to force people to buy it.

Nov 17 '05 #5
But setting SessionState to SQLServer is not really an option for most
shared hosting sites.

"Rajesh.V" <Ra***********@ hotmail.com> wrote in message
news:ud******** ******@tk2msftn gp13.phx.gbl...
Put session in an outofproc server. Sql server. Session problems are very
common with asp.net all versions. It goes away the moment u use sql server. Maybe ms wants to force people to buy it.

Nov 17 '05 #6
We didn't have problems with the session state until we reached a
certain threshold of activity. On the shared server, though, we are
equally at the whim of other applications running on the same machine
(who will chew up memory that our app needs).

Could be that the next solution is to use a dedicated server and the
session state server (not the SQL server yet). The session state server
is likely going to be faster than the SQL server (less connection
overhead?).

Thanks!

=============== =============== =========
Jacob W Anderson
Beyond Ordinary Software Solutions
http://www.beyond-ordinary.com
jw*@beyond-ordinary.com
=============== =============== =========

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #7
We didn't have problems with the session state until we reached a
certain threshold of activity. On the shared server, though, we are
equally at the whim of other applications running on the same machine
(who will chew up memory that our app needs).

Could be that the next solution is to use a dedicated server and the
session state server (not the SQL server yet). The session state server
is likely going to be faster than the SQL server (less connection
overhead?).

Thanks!

=============== =============== =========
Jacob W Anderson
Beyond Ordinary Software Solutions
http://www.beyond-ordinary.com
jw*@beyond-ordinary.com
=============== =============== =========

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #8
Ok William then why not build a custom solution, which will store the data
to be persisted in a cookie which will take uptill 4kb. Then u get out of
this session ruckus.

"William LaMartin" <la******@tampa bay.rr.com> wrote in message
news:ef******** ******@tk2msftn gp13.phx.gbl...
But setting SessionState to SQLServer is not really an option for most
shared hosting sites.

"Rajesh.V" <Ra***********@ hotmail.com> wrote in message
news:ud******** ******@tk2msftn gp13.phx.gbl...
Put session in an outofproc server. Sql server. Session problems are very common with asp.net all versions. It goes away the moment u use sql

server.
Maybe ms wants to force people to buy it.


Nov 17 '05 #9
If the cookie limit is 4 KB, then this would work for some applications but
not for one where I need to store a small 20 KB JPEG file as a session
variable to be able to response.binary write it to another aspx page.

I think it is really a local situation on a particular shared server that is
causing the problem. I have no problem with session variables in other
situations using the same settings that I have control over. The web host
says they are researching the problem, but no solution arrives.
"Rajesh.V" <Ra***********@ hotmail.com> wrote in message
news:ex******** ******@TK2MSFTN GP10.phx.gbl...
Ok William then why not build a custom solution, which will store the data
to be persisted in a cookie which will take uptill 4kb. Then u get out of
this session ruckus.

Nov 17 '05 #10

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

Similar topics

8
21108
by: P. Glassel | last post by:
I'm having problems getting session timeouts to change programmaticlaly under IIS6.0. This is unchanged code that ran as expected under IIS5.0. Anyone else run into this problem? Thx.
3
2842
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...
7
7205
by: Billy Jacobs | last post by:
I am having a problem with my session variable being set to Null for no apparent reason. I am declaring it like the following when the user logs in. dim objUserInfo as new clsUserInfo 'Set some properties objUserInfo.UserName = txtUserName.text.trim objUserInfo...
1
12860
by: Brian Schloz | last post by:
Hello, I just thought I'd share my particular situation regarding session state periodically being "lost" in my asp.net app. I read with interest all of the posts regarding lost session state (virus scanner, modified assemblies/configs, etc.). The suggested solution of using a 'State Server' or 'SQL State Server' was not attractive to me given the drawbacks: performance, objects must be serializable, no more Session_End.
10
3500
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
7
2962
by: Erik | last post by:
I have an application that uses sessions variables a lot but one I publish the application on the prod server these variables are lost. The application is written i c# 2.0 and I've set the statServer timeout to 20 min in the the web.config file. Any ideas why the variables are lost?
2
4243
by: maxkumar | last post by:
Hi, I am running a ASP.NET 1.1 site on Win Server 2003 with IIS 6.0. The website has been running for about 1.5 years now. In the past, we used to have random cases of session variables getting lost, but not frequently. However, since the past 2 weeks, I am noticing an alarming increase of such session variables lost cases. My application log shows about 20-30 such errors every day. We have not changed anything at the server for a long...
1
1465
by: =?Utf-8?B?U00=?= | last post by:
Background We migrated our Asp.net 1.1 application to Asp.net 2.0 ( just migration ) .. It was working fine in local developer machine and one of our development testing server. When we moved to staging server which is also running on windows 2000 server and we started facing a peculiar issue. We are able to login successfully every time , however , a click on a link to move to a a different page on a hyper link. <asp:HyperLink...
11
3643
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
0
8436
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
8345
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,...
1
8548
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
7371
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
6186
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
5657
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();...
0
4182
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...
1
2763
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
2
2000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.