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

Timing Out a specific session variable?

Any way to set a timeout for a specific session variable?

I want a page to prompt for value if a session variable is not set to
it. However, I want it prompt again if that session variable was set
over 2 minutes ago.

Thanks for any help or information.

Oct 29 '07 #1
1 881
"jobs" <jo**@webdos.comwrote in message
news:11*********************@z9g2000hsf.googlegrou ps.com...
Any way to set a timeout for a specific session variable?

I want a page to prompt for value if a session variable is not set to
it. However, I want it prompt again if that session variable was set
over 2 minutes ago.
Not natively, however it would be pretty simple to code...

Just create a second Session variable set to a DateTime, and check that
first...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 29 '07 #2

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

Similar topics

3
by: coleenholley | last post by:
I need to know how to get a specific row/cell of data to post as a session variable - like I would with an ASP.Net table: Dim ld_sum_tot_cty_tax As Doubl Session("wa_tot_gal") =...
6
by: TPS | last post by:
In my login routine I am doing the following // Create the authentication ticket FormsAuthenticationTicket authTicket = new ...
5
by: Nick | last post by:
I have a client who is building an internal questionaire for their employees. However the twist is that they wish to time the user *accurately* in how long they actually take to do the test. I...
8
by: enahar | last post by:
Hi, How to timing out the asp.net web application when not in use for 15 minutes although I am using the code in web.config file as below: <authentication mode="Forms"> <forms...
0
by: JJ | last post by:
I have an asp.net 1.1 app I wrote using the Mobile Controls. I changed the timeout attribute in sessionState in web.config from the default of 20 to 1440: <sessionState mode="InProc"...
1
by: Dean Richardson | last post by:
Hello, I am having problems with my PHP sessions timing out. I have a system which requires the user to login. Once they login, it then stores their username as a session variable and is checked...
2
by: suspended | last post by:
My website session is timing out frequently. I have modified the web.config file such that <sessionState timeout="60"/> and also at the Page_load, I have assigned Session.Timeout = 60; but...
4
by: Nebulus | last post by:
We've got a website that's designed in classic ASP. While it's a good product, the original design was badly done, and I've inherited a monster. At some point last week, users began calling in...
16
by: emajka21 | last post by:
I created a website in ASP 2.0/c# that connects to an Access 2000 database. Currently I have 4 pages that people can view without logging in, which are reports that post marathon race results. Only...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
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,...
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,...

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.