473,795 Members | 3,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Keep Session Alive

11 New Member
In my aspx page i want the lot of informations to be filled by the user. But wen the user takes some break to fill the form n resumes after some time the page gets expired. So to keep the session alive i used the following javascript code but it didnt work.

Expand|Select|Wrap|Line Numbers
  1. function KeepMeAlive()
  2.     {
  3.         var myImg;
  4.         myImg =document.getElementById('keepAliveIMG');         
  5.         if (myImg)
  6.             myImg.src = myImg.src.replace(/\?.*$/, '?' + Math.random());
  7.     }
  8.  window.setInterval("KeepMeAlive()", 2000); 
So it would be helpfull if any one suggests some idea for calling the server method asychronously using javascript by which i can make the session alive.

Thanks in advance.
Ram
Dec 28 '07 #1
0 1510

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4485
by: David | last post by:
This is called "evil hack problem" because my problems are due to me trying to do an evil hack. Please don't judge me, just believe that there are reasons for what I'm trying to do :-) I've got a problem with BaseHTTPServer. I am trying to keep a connection alive so that I can send data down it. At the moment, I have subclassed BaseHTTPRequestHandler like this: def do_POST(self):
1
14962
by: Jason | last post by:
I've got a standard form on an ASP page to collect resumes from visitors. The page can be accessed only after the visitor has logged into the site. The issue that I'm running into is that the users are exceeding the length of the session timeout, so when they submit the form, it is taking them back to the login page instead of submitting the form. The solution I am trying (extending timeout session is not an option due to the heavy load...
3
5295
by: David | last post by:
Hi, I write asp.net via c#. How should I know the client's session alive? 1. if ( Session.Equals ( null ) ) 2. if ( Convert.IsDBNull(Session) ) 3. if ( Session.Contents.Count == 0 ) Thanks for your kind advice, David.
1
2855
by: twscott | last post by:
I will be posting information to another application from my applicatio and redirecting to that application which will load into anothe iteration of IE. The user may spend a significant amount of tim working in that application. I need to keep my session alive whil there is activity in the other application as that application will b sending me return data when its processing is complete. Is there a wa to keep my session active while the...
1
5217
by: Nuno Magalhaes | last post by:
With the sniffer ethereal I get a lot of Connections Keep Alive in some sites like google.com and that returns me the Content-Length in the HTTP response header. When the connection is Close I don't get the Content-Length but I get an hexadecimal number that represents the size of the page but that is after the header and in the page more precisely. Is this normal to have this behaviour? I don't know how IE does to get Connections...
3
2126
by: Arnost Sobota | last post by:
Dear ASP community, I have a question regarding ASP session variables. My assumption was that a session variable has the same lifetime as the session itself: as a consequence, given that closing the browser doesn't terminate the session, the session variable is kept alive until the session expires. But, surprisingly, I've found this to be true for the session variables
7
7227
by: mail747097 | last post by:
I would like to keep IIS alive on my web site and prevent Application_End from occuring in global.asax. Any ideas?
6
5681
by: laredotornado | last post by:
Hi, When a user logs into our site, we create a session variable to denote the session is active and another to denote who is logged in. Once the user closes the browser and re-opens it, the session is destroyed and the variables are gone. How can I keep the session alive for 24 hours even if the user closes and re-opens the browser?
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
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
10213
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...
0
10000
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
9037
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6779
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
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
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.