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

Session Does Not Time Out

My session do not appear to be timing out. When I save something in ViewState, my expectation is that if no interaction occurs within the specified time, that the session variable would be null. Is that not the case? Here are the parameters in my webconfig file...

<sessionState
mode="InProc
stateConnectionString="tcpip=127.0.0.1:42424
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes
cookieless="false"
timeout="20"
/

So why does it not time out? Or do I not understand timeout correctly? Or is some value in the Machine.config overriding

Thanks in advance for your assistance!!!!!!!!
Nov 18 '05 #1
3 1225
viewstate is stored in a hidden field sent to the client, and has nothing to
do with sessions.

-- bruce (sqlwork.com)
"Jim Heavey" <an*******@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...
My session do not appear to be timing out. When I save something in ViewState, my expectation is that if no interaction occurs within the
specified time, that the session variable would be null. Is that not the
case? Here are the parameters in my webconfig file....
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false"
timeout="20"
/>

So why does it not time out? Or do I not understand timeout correctly? Or is some value in the Machine.config overriding?
Thanks in advance for your assistance!!!!!!!!

Nov 18 '05 #2
Timeout metioned in this config file correct, your session should timeout in
20 mins. Machine.config setting will be overridden by settings in web.config
in virtual folder. So you no need to worry about that. But i have some doubt
in your question, you are talking about viewstate. But viewstate and session
are not related anyway. If you store some value in viewstate, it is stored
in hidden value which will exists till you post back. If i am not clear, get
back to me.

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Jim Heavey" <an*******@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...
My session do not appear to be timing out. When I save something in ViewState, my expectation is that if no interaction occurs within the
specified time, that the session variable would be null. Is that not the
case? Here are the parameters in my webconfig file....
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false"
timeout="20"
/>

So why does it not time out? Or do I not understand timeout correctly? Or is some value in the Machine.config overriding?
Thanks in advance for your assistance!!!!!!!!

Nov 18 '05 #3
If you tell us exactly what you want to do, then we will able to guide you.

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Jim Heavey" <an*******@discussions.microsoft.com> wrote in message
news:EB**********************************@microsof t.com...
OK, Viewstate does not have a "timeout" associated with it and will never cause a timeout. If I want to ensure that a request will time out, I must use a "Session"

variable? How about the cookies which are being created behind the scenes,
will they not time out? I put all of this code into handle timeout and now
I can not figure out how to cause the condition to test the code that I put
in for that condition.....
Nov 18 '05 #4

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

Similar topics

1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
6
by: Gonenc Ercan | last post by:
Hi, I ve ended up debugging a ASP.NET project (with about 380 files on the project .NET Framework 1.0 on IIS 5.0) which has a memory leak... The memory rises too fast. With about 25-30 active...
5
by: ASP.Confused | last post by:
As you can tell from my previous posts on this issue...I'm really confused :-/ I have a few ASP.NET web applications on my web host's "https" server. Our web host has a single "bin" folder for...
5
by: news.microsoft.com | last post by:
Hi everyone, I need some help (may be in the form of some sample code) for the subject question. I have an ASP.NET/C# application. I need to do quite a few tasks when the session ends. I...
5
by: jensen bredal | last post by:
I need to keep track on user "session data" while still turning session off as i do not want users login to expire? Thanks JB
10
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...
7
by: Mr Newbie | last post by:
I have written a Custom Control Menu. Its fairly simple but it works well enough. In order to simplify things I decided to store the Menu1 custom control in Session. In the page load event below,...
2
by: Gordon Burditt | last post by:
I had this idea about preventing session fixation, and I'm wondering what anyone else thinks about it. The idea is, essentially, don't allow session ids that YOUR PHP didn't generate (and aren't...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
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
jinu1996
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...
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,...

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.