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

Managing Session

I'm using ASP.NEt 2.0.
I use the session to save important information about the user current
session (for example the current project he is working on).
I use those variables in almost every web page in the application.
When a user session times out, I want to be able to make the user to relogin
and continue working with the application.
1. Is there easy way to catch an even just before the session times out? Or
to prelong a session (so I want lose all the variables stored there?)
2. What's the recommended way to deliver the user to the login page and than
bring him back to where he stopped using the application?

Oct 18 '06 #1
1 1523
I'm using ASP.NEt 2.0.
I use the session to save important information about the user current
session (for example the current project he is working on).
I use those variables in almost every web page in the application.
When a user session times out, I want to be able to make the user to relogin
and continue working with the application.
1. Is there easy way to catch an even just before the session times out? Or
to prelong a session (so I want lose all the variables stored there?)
2. What's the recommended way to deliver the user to the login page and than
bring him back to where he stopped using the application?
You could set the session timeout to a longer period than the default
20 minutes. Note that this will keep sessions around longer for people
that "really left" the site, so your memory consumption goes up.

For people that are slowly filling in a long page and hit the session
timeout, maybe you could add an iframe that refreshes itself every 10
minutes or so. This should keep their session alive.
There is no server-side way to "extend a session" because you don't
know if that user is ever coming back.

If the user hits some page, but misses some session variables, then
either the session was lost or he got there by typing a url.
You could remember that url, have him log in and redirect "back".
BUT if he needs to have some session variables from "previous pages"
then that information is gone and you should redirect him maybe to the
first page of the set.

Hans Kesting
Oct 18 '06 #2

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

Similar topics

4
by: Steve | last post by:
Hi, I need to be able to open another browser from within an already opened browser with a completely new session (using the same session variables). How can I do this? In essence, I want to...
4
by: Steven | last post by:
Hi there, I want to pass a session id from a form to a third party payment system. I have no need a of creating and maintaining sessions for the whole visit to the site. Do I just start the...
1
by: Saradhi | last post by:
I am hosing website using ASP on windows2003 standard server in IIS 6.0 sessions are getting expired immediately. Could any one help me in managing sessions in iis 6.0 and ASP?
8
by: Braky Wacky | last post by:
Hello, I have an ASP.NET webpage that uses an instance of System.Web.UI.HtmlControls.HtmlInputFile for uploading files to our server. I came across the documentation at MSDN for upping the...
6
by: Shashi | last post by:
I have developed ASP.Net application using .Net 1.1 Framework. When the user clicks image file through Java script I am using my search window as below. QueryString =...
6
by: Simon Harvey | last post by:
Hi everyone, If anyone can help me with the following I would be very greatful. In order to determine when a session has timed out I have some code in each page that does something like: ...
2
by: Piotrek | last post by:
Hi all. I am developing a web application, which should be able to retrieve data from many databases. In Web.Config I created three named connection strings. My app consists of DAL, BLL and...
2
by: gstark | last post by:
Hi, I need some help or direction. The website design I want to implement has a login and menu pages (root website.) The menu directs access to sub-websites (which are themselves separate...
4
by: ddolgoff | last post by:
Hello to everyone, I have a problem of managing a session with cookies and "session_set_save_handler()". I want to use php's built-in session management mechanism with user-level session storage...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
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...
1
isladogs
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...
0
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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
0
isladogs
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...

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.