473,322 Members | 1,409 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,322 software developers and data experts.

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 1909
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*********@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.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*********@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.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
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
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...
8
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
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; ...
5
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...
0
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...
18
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...
1
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>...
4
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...
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...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.