473,657 Members | 2,550 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session Timeouts - Notifying The User

What is the best way (or what ways have been successful for you) to
notify a user on a website that their session has timed out?

I've seen various sites around the internet (my bank, for example)
which, when the browser is left untouched for an extended period of
time, forward the user to a "session timed out" page of some sort. I
assume this is done with a simple enough client-side script (a moment on
Google found me some examples which will work just fine).

Has anyone taken a different approach to this? Are there any better
ways of doing this in the .NET world? Does anyone have any simple code
examples of what they've used? I can picture all kinds of things, from
forwarding the user to a page saying "you've been automatically logged
out" to notifying the user via a DHTML floater that they are about to be
logged out, etc. Suggestions?
Regards,
David P. Donahue
dd******@ccs.ne u.edu
Nov 16 '05 #1
1 1270
RCS
I think of those are done with a meta refresh tag - that refreshes to a page
that kills the session and tells you the session is dead. You could do a
setTimeout in javascript, but there are a lot of things that can stop
javascript from executing.
"David P. Donahue" <dd******@ccs.n eu.edu> wrote in message
news:ec******** ******@TK2MSFTN GP12.phx.gbl...
What is the best way (or what ways have been successful for you) to notify
a user on a website that their session has timed out?

I've seen various sites around the internet (my bank, for example) which,
when the browser is left untouched for an extended period of time, forward
the user to a "session timed out" page of some sort. I assume this is
done with a simple enough client-side script (a moment on Google found me
some examples which will work just fine).

Has anyone taken a different approach to this? Are there any better ways
of doing this in the .NET world? Does anyone have any simple code
examples of what they've used? I can picture all kinds of things, from
forwarding the user to a page saying "you've been automatically logged
out" to notifying the user via a DHTML floater that they are about to be
logged out, etc. Suggestions?
Regards,
David P. Donahue
dd******@ccs.ne u.edu

Nov 16 '05 #2

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

Similar topics

12
6391
by: Jim | last post by:
The dreaded Session state :-) All, Just to give a little background this is reagarding an ASP 3.0 application running on IIS6 using the default app pool. I have set the session timeout to 540 minutes in IIS (under options tab in Application configuration). There is no code in the Session_OnStart or Session_OnEnd in the global.asa. Via an include file, each page executes these no-cache related code: Response.Buffer = True
3
2802
by: Craig Storey | last post by:
I have a form where users logged in using sessions can edit articles in a WYSIWYG editor. Some of them take their time and don't like to save their work very often and occassionally the sessions expire and their work goes poof. (I've suggested editing off-line and simply copy+paste but they prefer the editor.) After a lot of searching I've found the main culprit is session.gc_maxlifetime and I can set it longet like... ...
2
1654
by: mircu | last post by:
Hi, I need a quick solution to make my application behave correctly when one of these timeouts occurs. I have some logic in session_start but when the authentication cookie timeouts the user is redirected to login page and after successful login the session is not started. I'd like to have one timeout and when it occurs the user must login and then the new session is started. TIA. Regards, mircu
1
1388
by: - Steve - | last post by:
I use forms based authentication and I've been putting the username in Session State (Session). Then when a user posts I check that Session != null else I Session.Abandon() and Response.Redirect("logon.aspx") since that seems like a graceful way to handle timeouts, session state losses (bin directory was updated for example). This doesn't seem like a reliable way to do it though. I get weird things happening like SOMETIMES if I close...
7
1628
by: Joseph Byrns | last post by:
I have written a shopping cart type web application using session variables to store the shopping cart details (with a timeout of 59 minutes). Originally my timeout was set to the default 20 minute timeout, but I was finding that people could take longer than 20 minutes between pages. So my question is, what are peoples recommendations here, should I continue using the session variables or should I adopt a cookie approach and store...
2
363
by: Fraijo | last post by:
how can i disable session timeouts without affecting any program codings?
3
1548
by: codegreen9 | last post by:
Hi, My understanding is that session info must be stored using Session, which means text data. What I'd like to be able to do, is keep an object alive throughout a user's session, without having to serialize my data into text, save it as Session, and restore it using Session every time the user moves to a different page. Is there no way to have a session *object* stay in memory and preserve variable state without...
3
7590
by: Sems | last post by:
Hi I'm using the Session_End event in the global.asax to detect if a users sessions has ended. Is there any way to tell if the session end is due to it being expired and not abandoned? I'm trying to show the user a popup if their session has expired due to a timeout. Whats the best way to do this?
7
7840
by: Microsoft Newsserver | last post by:
Hi Folks. I have an issue I need some help with if thats OK. I am running Framework 2.0 using Windows Integrated Security. For most of the application we manage session timeouts without the user knowing anything about it by ensuring all the essential objects ( only a few ) are in place during session start. For performance, there are some parts of the application which use static
0
8326
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8845
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8743
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8522
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8622
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5647
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2745
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1736
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.