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

Alert on Session timeout?

Hello!

In Global.asax I've seen an event called Session TIme out... I tried Putting
a Response.Write("<script
language=""javascript"">alert('Timeout');</script>")
in there to give a popup when the session times out but it didn't work,
didn't get any errors either... can this be done and how?

Merry Christmas!
/Lars
Nov 19 '05 #1
4 3418
no. there is no active request when session end fire, so there is no one to
send the response to.

-- bruce (sqlwork.com)

"Lars Netzel" <no****@doamin.com> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
| Hello!
|
| In Global.asax I've seen an event called Session TIme out... I tried
Putting
| a Response.Write("<script
| language=""javascript"">alert('Timeout');</script>")
| in there to give a popup when the session times out but it didn't work,
| didn't get any errors either... can this be done and how?
|
| Merry Christmas!
| /Lars
|
|
Nov 19 '05 #2
Hi.
Like Bruce said, it's not possible like you wanted it to be. But there
might be other ways to solve the problem. What is it that you wish to
achieve?

"Lars Netzel" <no****@doamin.com> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
Hello!

In Global.asax I've seen an event called Session TIme out... I tried Putting a Response.Write("<script
language=""javascript"">alert('Timeout');</script>")
in there to give a popup when the session times out but it didn't work,
didn't get any errors either... can this be done and how?

Merry Christmas!
/Lars

Nov 19 '05 #3
Event Session Timeout or is it session_end?

if you're using forms authentication, after the session expires and the
user send a request, the event will be triggered.

And you must remember that on session_end event only works for InProc
session state

Nov 19 '05 #4
I want to make the timeout of my application to be better looking with a
proper message to the user somehow. Right now I have custom error pages but
that doesn't help on a timeout.. then I have no contact with the objects to
give a nice message.

The best way would be to, in real time, give the user a popup message when
the session dies.

/Lars
"Shawn" <bo********@hotmail.com> wrote in message
news:e%****************@TK2MSFTNGP10.phx.gbl...
Hi.
Like Bruce said, it's not possible like you wanted it to be. But there
might be other ways to solve the problem. What is it that you wish to
achieve?

"Lars Netzel" <no****@doamin.com> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
Hello!

In Global.asax I've seen an event called Session TIme out... I tried

Putting
a Response.Write("<script
language=""javascript"">alert('Timeout');</script>")
in there to give a popup when the session times out but it didn't work,
didn't get any errors either... can this be done and how?

Merry Christmas!
/Lars


Nov 19 '05 #5

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

Similar topics

1
by: Jon Angel | last post by:
Users complete a document in a rich text box, typically 2,000 to 8,000 characters. Sometimes they turn away to do something else, and lose all work when the session times out. Can you suggest a...
12
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
2
by: Kenneth | last post by:
Hi, In a document I have three lines that detects and redirects to another page is a session variable is 0 If Session("Customer_ID")=0 Then Response.Redirect("myPage.aspx") End If What I...
4
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
11
by: Vishal | last post by:
Hello, can anybody tell me how I can extend the session expiry time? Is it done via code or via IIS? Sorry I am new and dont know about this.
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
4
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
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
6
by: ChrisAtWokingham | last post by:
I have been struggling with unexpected error messages on an ASP.NET system, using SQL and C#. The application draws organisation charts, based on data stored in the SQL database. Some of the chart...
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
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...
1
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...
0
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...
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.