Hello,
I am having trouble with session state in my asp.net 1.1 C# web app. I
am trying to program either a popup box warning of expiration, or I
may do a redirect to the home page upon expiration.
But I can't seem to get started, because I am getting values that I do
not understand. In IIS settings, I stopped my website/app and went
into the properties for it and selected the "Home Directory" tab. Then
I clicked the "Configuration" button and selected the "Options" tab.
Then under the "Application Configuration" group, I verified that the
box for "Enable session state" was checked. Then I changed the value
to "2" (just for testing). I then saved and restarted my website.
Then I opened the site in Visual Studio.net and went into the
web.config file and changed the forms authentication timeout value to
"1" (again, just for testing).
Then when I ran my code, in debug mode/step through, I can see that
the value being returned for "this.Session.Timeout" is "15"??? What's
going on here? I thought that when I set the value in IIS, it would
make it 2, but that didn't happen? Where is this number coming from?
How can I change/control it?
Your help is much appreciated.
JP 4 1114
"Joey" <jo*********@topscene.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
Hello,
I am having trouble with session state in my asp.net 1.1 C# web app. I
am trying to program either a popup box warning of expiration, or I
may do a redirect to the home page upon expiration.
But I can't seem to get started, because I am getting values that I do
not understand. In IIS settings, I stopped my website/app and went
into the properties for it and selected the "Home Directory" tab. Then
I clicked the "Configuration" button and selected the "Options" tab.
Then under the "Application Configuration" group, I verified that the
box for "Enable session state" was checked. Then I changed the value
to "2" (just for testing). I then saved and restarted my website.
I believe these values are for classic ASP, not for ASP.NET.
--
John Saunders [MVP]
On Apr 18, 12:34 pm, "John Saunders [MVP]" <john.saunders at
trizetto.comwrote:
"Joey" <joey.pow...@topscene.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
Hello,
I am having trouble with session state in my asp.net 1.1 C# web app. I
am trying to program either a popup box warning of expiration, or I
may do a redirect to the home page upon expiration.
But I can't seem to get started, because I am getting values that I do
not understand. In IIS settings, I stopped my website/app and went
into the properties for it and selected the "Home Directory" tab. Then
I clicked the "Configuration" button and selected the "Options" tab.
Then under the "Application Configuration" group, I verified that the
box for "Enable session state" was checked. Then I changed the value
to "2" (just for testing). I then saved and restarted my website.
I believe these values are for classic ASP, not for ASP.NET.
--
John Saunders [MVP]
So how does one set session timeout for asp.net?
Use the sessionState entry in Web.Config...
--
Brad
"Software is like melted pudding..."
"Joey" wrote:
On Apr 18, 12:34 pm, "John Saunders [MVP]" <john.saunders at
trizetto.comwrote:
"Joey" <joey.pow...@topscene.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
Hello,
I am having trouble with session state in my asp.net 1.1 C# web app. I
am trying to program either a popup box warning of expiration, or I
may do a redirect to the home page upon expiration.
But I can't seem to get started, because I am getting values that I do
not understand. In IIS settings, I stopped my website/app and went
into the properties for it and selected the "Home Directory" tab. Then
I clicked the "Configuration" button and selected the "Options" tab.
Then under the "Application Configuration" group, I verified that the
box for "Enable session state" was checked. Then I changed the value
to "2" (just for testing). I then saved and restarted my website.
I believe these values are for classic ASP, not for ASP.NET.
--
John Saunders [MVP]
So how does one set session timeout for asp.net?
On Apr 18, 12:54 pm, Brad Roberts <BradRoberts56noj...@hotmail.com>
wrote:
Use the sessionState entry in Web.Config...
--
Brad
"Software is like melted pudding..."
"Joey" wrote:
On Apr 18, 12:34 pm, "John Saunders [MVP]" <john.saunders at
trizetto.comwrote:
"Joey" <joey.pow...@topscene.comwrote in message
>news:11**********************@b75g2000hsg.googleg roups.com...
Hello,
I am having trouble with session state in my asp.net 1.1 C# web app. I
am trying to program either a popup box warning of expiration, or I
may do a redirect to the home page upon expiration.
But I can't seem to get started, because I am getting values that I do
not understand. In IIS settings, I stopped my website/app and went
into the properties for it and selected the "Home Directory" tab. Then
I clicked the "Configuration" button and selected the "Options" tab.
Then under the "Application Configuration" group, I verified that the
box for "Enable session state" was checked. Then I changed the value
to "2" (just for testing). I then saved and restarted my website.
I believe these values are for classic ASP, not for ASP.NET.
--
John Saunders [MVP]
So how does one set session timeout for asp.net?- Hide quoted text -
- Show quoted text -
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: BravesCharm |
last post by:
BravesCharm Dec 7, 10:57 am show options
Newsgroups: microsoft.public.dotnet.distributed_apps
From: "BravesCharm" <mastrauc...@gmail.com>
Date: 7 Dec 2004 10:57:40 -0800
Local: Tues, Dec...
|
by: Greg Linwood |
last post by:
I'm having difficulty understanding Session state in ASP.Net. It's almost
embarrassing asking this as I've been using ASP since it was first released
& it really shouldn't be this hard to use -...
|
by: Johan Nedin |
last post by:
Hello!
I have a problem with SQLSession state on my ASP.NET pages.
SQLSession state behaves very different from InProcess session state,
which I think is very bad.
I can understand some of...
|
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...
|
by: |
last post by:
I recently wrote two asp.net based web apps based around the Enterprise
Library application blocks and generated code and stored procedurescode in
myGeneratation. One works fine but the other is...
|
by: Daniel Walzenbach |
last post by:
Hi,
I have a web application which sometimes throws an “out of memory”
exception. To get an idea what happens I traced some values using performance
monitor and got the following values (for...
|
by: Laurahn |
last post by:
Hi:
i'm using modal window (showmodelessdialog) on asp.
when the object is created i used session variables.
After the object is closed the data is remaining on the modal window when is
open...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |