473,412 Members | 2,003 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,412 software developers and data experts.

inconsistent timeout periods

Hello all,

I am having a significant problem with the security in my app. I am
experiencing a problem, where the session apparently times out, and all my
session data is reset just as if a new session was started, ... but the
FormsAuthentication ticket doesn't expire, and so i wind up with a user who
is no longer actually logged in being able to access sections of the site
which are locked down using the "LOCATIONS" node of the web.config file and
application roles.

How can i make sure my session and authentication ticket both expire
together?

Thanks in advance,
- Arthur Dent.

Mar 7 '07 #1
1 1592
you can set the timeout in the <sessionState<formselement respectively.

But it sounds very much like your appdomain recycles at some point - usually
session is sliding expiration.

Are you by any chance doing some file operations in your web app, or other
stuff like:

Machine.Config, Web.Config or Global.asax are modified
The bin directory or its contents is modified
The number of re-compilations (aspx, ascx or asax) exceeds the limit specified
by the <compilation
numRecompilesBeforeAppRestart=/setting in machine.config or web.config
(by default this is set to 15)
The physical path of the virtual directory is modified
The CAS policy is modified
The Web service is restarted
Application Sub-Directories are deleted

-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
Hello all,

I am having a significant problem with the security in my app. I am
experiencing a problem, where the session apparently times out, and
all my session data is reset just as if a new session was started, ...
but the FormsAuthentication ticket doesn't expire, and so i wind up
with a user who is no longer actually logged in being able to access
sections of the site which are locked down using the "LOCATIONS" node
of the web.config file and application roles.

How can i make sure my session and authentication ticket both expire
together?

Thanks in advance,
- Arthur Dent.

Mar 7 '07 #2

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

Similar topics

0
by: Robert.Tackett | last post by:
OmniDotNet, I am a DotNet newbie building a web based database application that users will "sit" in for long periods of time without activity. So I need to know the best way to recognize that a...
1
by: tonci.tomic | last post by:
I have windows service running on win2000 and client applications on local network connected to service via remoting. Service acts as interface to MSSQL 2000 database and it uses Microsoft Data...
1
by: levtoma | last post by:
Hello, We have an ADO.NET application using .NET version 1.1.4322 SP1. It is calling stored procedures in a database that it never written to. The only thing the stored procedures do is a...
8
by: Joseph | last post by:
I have a textBox that people writes stories in it. They can use for format. I have Aspell installed on the server, so people can make correction to their text. Sometimes, they forget to add a...
1
by: Derek Fountain | last post by:
I just figured out a rather puzzling problem I had with a cookie apparently being ignored. I had it set to timeout in 3 minutes and it worked fine tested on localhost, but sometimes failed when...
0
by: --alec | last post by:
Is there a maximum recommended value for setting the timeout value in web.config section <sessionState mode="InProc" timeout="20" /> What are the possible repercussions of setting this...
2
by: jester | last post by:
It is my understanding that when a session timeout occurs, the servicing thread will be terminated by IIS. However, I did a simple test and made a test page with a single button; when clicked, the...
9
by: tshad | last post by:
I have the following in my web.config in my application root. <forms name="staffing" loginUrl="/applicant/EELogin.aspx" timeout="400" protection="All" path="/" /> I assumed this meant the...
3
by: Rahul Babbar | last post by:
Hi All, When could be the possible reasons that could make a database inconsistent? I was told by somebody that it could become inconsistent if you " force all the applications to a close on...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
tracyyun
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...
0
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,...
0
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...
0
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...

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.