Timing Out a specific session variable?

J

jobs

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.
 
M

Mark Rae [MVP]

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top