Hi all,
I'm having a problem with extending Session Timeouts... hopin someone can help..
This is the line under my <system.web> tag in my web.config: - <sessionState mode="InProc" timeout="45" cookieless="AutoDetect"></sessionState>
The line above does not extend my session. However, if I set cookieless="tru e", it seems to work just fine.
I don't want the sessionID in my client's address bar and I've looked throughout my code to ensure that the session is not being set elsewhere.
I should also add that the sessionState tag above will work if I put the value below the .NET default (which I believe the 20min).
Any thoughts?
5 1583 Plater 7,872
Recognized Expert Expert
When you set the timeout to be 45 in your web.config, what does it claim the timeout it when you go to the aspNET config?
I'm a little unclear what exactly you mean by my ASPNet Config. Are you referring to the server/application configuration?
I looked in the Aspnet.config in my Framework directory and it contains this: - <?xml version="1.0" encoding="UTF-8" ?>
-
<configuration>
-
<runtime>
-
<legacyUnhandledExceptionPolicy enabled="false" />
-
<legacyImpersonationPolicy enabled="true"/>
-
<alwaysFlowImpersonationPolicy enabled="false"/>
-
<SymbolReadingPolicy enabled="1" />
-
</runtime>
-
</configuration>
-
I ran a trace on my page and I found this in the Headers Collection: - Cookie - hidefield=; ASP.NET_SessionId=xs1tth551ae1sai4rkjxetbr
There was no reference to any timeout values anywhere in my trace.
Plater 7,872
Recognized Expert Expert
When you go to the IIS configuration (under admin tools)
And select the exact web(whatever) that you want to look at, for my example "testDB" is the one I look at.
I go to properties of it, select the ASPNET tab (which will tell you which version of ASPNET the website is configured for) and chose to "edit configuration"
A new window pops up with a number of tabs, "state management" has the session stuff.
This tab *SHOULD* reflect what is contained in your web.config, assuming everything is correct.
Hi there,
That tab, on both my local machine's IIS and the dev server's IIS, read the same as the values in my web.config. However, the dev server seems to be ignoring these values and returning to the default 20...
Plater 7,872
Recognized Expert Expert
That is only 20mins of not activity.
If it works on the real server, does it matter on the dev server?
You do know that every recompile/publish/etc of the website will wipe out the Session state right?
Sign in to post your reply or Sign up for a free account.
Similar topics |
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.
|
by: DavidS |
last post by:
First: There are several ways to confuse one regarding session timeout.
(1) web.config - <sessionState timeout="20">
(2) IIS Manager | Internet Information Services | ServerNode | Default Web Site |
Properties | Configuration | Options | Enable Session State
Session timeout 20
(3) within Global.asax.vb file - Session_Start subroutine can use
Session.Timeout=x minutes or
(4) within any web page, i.e., <web page>.aspx can use...
|
by: bdeviled |
last post by:
I am deploying to a web environment that uses load balancing and to insure
that sessions persist across servers, the environment uses SQL to manage
sessions. The machine.config file determines how all applications will use
sessions and to insure that all application use this method, the session
properties cannot be overriden.
Within the sessionstate tags, the webadmin (upon my request)r emoved the
property for timeout, hoping that...
|
by: UJ |
last post by:
I have a page where the user can upload a video file. As you can guess, this
may take a while. Is there a way I can change the session timeout for just
this one page? I would also want to change the forms authentication to be a
large value for that page also.
TIA - Jeff.
|
by: Elliot |
last post by:
I put
<sessionState cookieless="false" timeout="6000"/>
in
<system.web>
However, the session defined as
session = "Peter";
sometimes is 'erased' in 10 minutes, or even in 2 minutes.
What's wrong with my code?
| |
by: trullock |
last post by:
Hi,
I want to test some session timeout code ive written but im getting a
few problems.
I want to reduce the session timeout to 1min so i dont have to wait
around for 20 min to see if my code is working. Quite simply, how do i
do this?
I want the session to behave exactly as it does normally (is that
|
by: Andy B |
last post by:
Is there a way to refer to things in Session object without calling Session
itself?
|
by: Microsoft Newsserver |
last post by:
Hi Folks.
I have an issue I need some help with if thats OK.
I am running Framework 2.0 using Windows Integrated Security. For most of
the application we manage session timeouts without the user knowing anything
about it by ensuring all the essential objects ( only a few ) are in place
during session start.
For performance, there are some parts of the application which use static
|
by: anithaapr05 |
last post by:
Hi,
I am creating a session when user successfully login to the site and user gets a form to input some data into database.
Assume that user entered data into some fileds and let the browser ideal and doing some other work in his/her system.
My requrement is, 2 mins before(after 13 mins) of session timeout(I set session timeout as 15 mins in web.config), user should get an alert as" Your session is about to timeout in 2 mins(at...
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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...
|
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: 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...
| |