|
| |||||||||
| Tags: countdown, diplay, javascript, net, session, show, time, timeout |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| JavaScript to Show time countdown display after .net session timeout
I would like to know that, is it possible for me to have a javascript which will display the time countdown minutes automatically after the net session timeout gets over. Can any body tell me that how can i do it? Does any body have any idea about the above issue? Kindly provide me the correct logical solution for the above issue. |
|
#2
| ||||
| ||||
| Re: JavaScript to Show time countdown display after .net session timeout
Just follow teh below steps mention. Quote:
|
|
#3
| ||||
| ||||
| Re: JavaScript to Show time countdown display after .net session timeout
The best advice would probably be to ask the users to close the browser window once they're done. With the use of session-cookies, the session will automatically end when the browser is closed or otherwise on a 30 minute timeout. Since there by default is no interaction between the browser and the server once a page is loaded, you would have to have a javascript contact the server in the background on forms-pages to refresh the session. |
|
#4
| ||||
| ||||
| Re: JavaScript to Show time countdown display after .net session timeout
Begin by creating a new ASP.NET Server Control project called SessionTimeoutTool. This will generate both a project and a solution for you. Add a second ASP.NET Web project to the solution called TestTimeoutTool. Open the web.config file for TestTimeoutTool and add a sessionState element in order to set the session timeout period. For the purposes of testing this control, it is advisable to set this attribute to something small. Quote:
Rename the default class in the SessionTimeoutTool project by right clicking on the default class in the Solution Explorer and renaming the file from ServerControl1.cs to TimeoutWatcherControl. The IDE will take care of renaming your class for you. The TimeoutWatchControl class comes with the Text property and the RenderContents already implemented for you by the IDE. You may delete these. You may also safely remove the ToolboxData and DefaultProperty attributes that decorate your class declaration. Quote:
|
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "JavaScript to Show time countdown display after .net session timeout" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Countdown, redirects and text loader in Javascript | Xiomar | Tips & Tweaks | 1 | 24-11-2010 06:17 AM |
| How to do Slide Show using JavaScript? | Samarth | Software Development | 5 | 03-02-2010 07:03 AM |
| How can I use javascript to track session ID & Visitor ID cookies? | Kushan | Software Development | 2 | 20-06-2009 01:16 PM |
| To show the session timeout in ASP.NET | Vaibhav S | Software Development | 2 | 03-02-2009 11:35 PM |
| Remote desktop timeout at connection time | Giuseppe | Windows Security | 0 | 09-01-2008 12:47 PM |