473,659 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session ending prematurely - Forms Authentication

We are having a problem with sessions ending sooner then they should. We
have a two server web garden, both servers have identical machine keys. I'm
storing session state in Sql Server. Sessions expire in 20 minutes even
though I have changed the settings in the web.config, for both the forms
authentication as well as the session. I have the timeout set for 90, but
still times out in 20 minutes. I copied the entire website down to my local
development machine, fired it up and it times out correctly in 90 minutes.
The web servers are 2003 and the development machine is XP SP2. Neither
webservers or development machine are running anti-virus software, I am aware
there is a problem with some anti-virus software, however that does not apply
to this. Any ideas?
Nov 19 '05 #1
2 1921
Check the IIS setting for the Session Timeout. I have had the same problems
and I felt (after som experimenting ) that the Timeout is the lowest setting
of the two places where you can set it. So set it in both the IIS and in the
web.config. I actually went I step further and set it on the session itself
in runtime when a user logs into our application.

/Lars


"Donald Scott" <Do*********@di scussions.micro soft.com> wrote in message
news:E4******** *************** ***********@mic rosoft.com...
We are having a problem with sessions ending sooner then they should. We
have a two server web garden, both servers have identical machine keys.
I'm
storing session state in Sql Server. Sessions expire in 20 minutes even
though I have changed the settings in the web.config, for both the forms
authentication as well as the session. I have the timeout set for 90, but
still times out in 20 minutes. I copied the entire website down to my
local
development machine, fired it up and it times out correctly in 90 minutes.
The web servers are 2003 and the development machine is XP SP2. Neither
webservers or development machine are running anti-virus software, I am
aware
there is a problem with some anti-virus software, however that does not
apply
to this. Any ideas?

Nov 19 '05 #2
Ya IIS session is set to 90 as well, and i did notice that an ASP session is
not being created because I do not call any asp pages only .net

"Lars Netzel" wrote:
Check the IIS setting for the Session Timeout. I have had the same problems
and I felt (after som experimenting ) that the Timeout is the lowest setting
of the two places where you can set it. So set it in both the IIS and in the
web.config. I actually went I step further and set it on the session itself
in runtime when a user logs into our application.

/Lars


"Donald Scott" <Do*********@di scussions.micro soft.com> wrote in message
news:E4******** *************** ***********@mic rosoft.com...
We are having a problem with sessions ending sooner then they should. We
have a two server web garden, both servers have identical machine keys.
I'm
storing session state in Sql Server. Sessions expire in 20 minutes even
though I have changed the settings in the web.config, for both the forms
authentication as well as the session. I have the timeout set for 90, but
still times out in 20 minutes. I copied the entire website down to my
local
development machine, fired it up and it times out correctly in 90 minutes.
The web servers are 2003 and the development machine is XP SP2. Neither
webservers or development machine are running anti-virus software, I am
aware
there is a problem with some anti-virus software, however that does not
apply
to this. Any ideas?


Nov 19 '05 #3

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

Similar topics

12
43189
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
9
2448
by: William LaMartin | last post by:
I have a problem, mentioned here before, of Session and Application variables disappearing at one site but not at others or on my development computer. The problem is illustrated by an example at http://www.lamartin.com/dotnet/sessiontestset.aspx, were I set Session, Application and Cache variables on the first page and then on the second page view them as the second page is refreshed every five seconds. Before 10 refreshes, the...
8
2285
by: Radu Colceriu | last post by:
HI, I've an asp.net app like this: login.aspx (no frame) :- save in session the user and pass -> framedoc.html :- frameset 2 content 1. menu.aspx 2.docviewver.aspx
2
1281
by: Darren Clark | last post by:
I am having some troubles with Sessin varables dieing.. Basically ihave my own class structure called USER that once the user logs in i save it to a session var called Session = myUserObject; All this works fine until sometimes it is like my sessoin vars just die and then trying to do a cast on them will result in a invalid cast error EVEN though the object is the same type.. I am not sure if the problem is that i am using forms...
5
5276
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the sessionstate inproc mode and users are randomly losing their session. I do not believe it is happening across all users at one time. It seems to happen to different users at different times, but I am only going off heresay. The aspnet worker...
0
1628
by: Nabani Silva | last post by:
Hi, hope someone could help I need to share session state (and contents) through differente web applications. I'm trying to get it done by using StateServer session state, below I paste code for web.config. Both applications are on the same server (I don't want to include all applications into one common virtual directory or application)
18
6869
by: Rippo | last post by:
Hi I am using role base forms authentication in asp.net and have come across a problem that I would like advice on. On a successful login a session variable is set to identify a user. This is all good as this session variable is used to retrieve data for that user etc. However if I restart the webserver then the users session is lost but the ticket is still active. Therefore the user is not redirected back to the login page.
1
1142
by: Fabio Cavassini | last post by:
I've got the following configuration in Web.config <authentication mode="Forms"> <forms name=".ASPXCOOKIE" loginUrl="sigin.aspx" protection="All" timeout="30" path="/"> </forms> </authentication> <authorization> <deny users="?" /> </authorization>
4
5322
by: Bjorn Sagbakken | last post by:
In a web-application with login creds (user, pwd), these are checked against a user table on a SQL server. On a positive validation I have saved the userID, name, custno and role-settings in a userobject (custom build class) and added this to the session using as session variable like session For all other pages I have added a small test in the page_load event, basically testing if the session != null, but also checking if the...
0
8330
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,...
0
8850
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
8523
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
7355
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
6178
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
5649
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
4175
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
2749
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
1975
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.