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

Renew IIS session with an image request?

Hello,

Given that a particular iis server has its session timeout set to the
default of 20mins, what will renew the request in order to prevent it timing
out? Is it only code-type things, such as ASP[X] pages, or will requesting
an image file renew the session?

We have an app for warehouse order entry, and some of the orders can be very
long. So we want to put something on the order entry page to renew the
session and keep the user from losing their work. Originally i was thinking
a small iframe which would be hidden and just request some empty page every
5 minutes. If an image request will renew the session though, then i can
simply have an image tag with some javascript to rotate the src attribute.

Will that work, or do i need to actually run code of some sort against the
server?

Thanks in advance,

- ArthurDent
Nov 18 '05 #1
2 2487
"A Traveler" <hi*********************@yahoo.com> wrote in message
news:eQ**************@TK2MSFTNGP11.phx.gbl...
Hello,

Given that a particular iis server has its session timeout set to the
default of 20mins, what will renew the request in order to prevent it
timing out? Is it only code-type things, such as ASP[X] pages, or will
requesting an image file renew the session?

We have an app for warehouse order entry, and some of the orders can be
very long. So we want to put something on the order entry page to renew
the session and keep the user from losing their work. Originally i was
thinking a small iframe which would be hidden and just request some empty
page every 5 minutes. If an image request will renew the session though,
then i can simply have an image tag with some javascript to rotate the src
attribute.

Will that work, or do i need to actually run code of some sort against the
server?


You need to request an ASP to renew the session.

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Nov 18 '05 #2
I have the same situation but it is not as mission critical as the OPs. After reading these posts I got to thinking. We can use a Response.BinaryWrite in a ASP. This bmp can be as small as 1px. Then in the ASP that we are using for the application we could JavaScript a call to it periodically. The src attributes width and height we could set to 0. That would replenish the Session and put actually nothing in the ASP that calls it. Probably a better way but just an idea.

--
George Hester
__________________________________
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message news:ck*********@kcweb01.netnews.att.com...
"A Traveler" <hi*********************@yahoo.com> wrote in message
news:eQ**************@TK2MSFTNGP11.phx.gbl...
Hello,

Given that a particular iis server has its session timeout set to the
default of 20mins, what will renew the request in order to prevent it
timing out? Is it only code-type things, such as ASP[X] pages, or will
requesting an image file renew the session?

We have an app for warehouse order entry, and some of the orders can be
very long. So we want to put something on the order entry page to renew
the session and keep the user from losing their work. Originally i was
thinking a small iframe which would be hidden and just request some empty
page every 5 minutes. If an image request will renew the session though,
then i can simply have an image tag with some javascript to rotate the src
attribute.

Will that work, or do i need to actually run code of some sort against the
server?


You need to request an ASP to renew the session.

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com

Nov 18 '05 #3

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

Similar topics

27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
1
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...
3
by: PM | last post by:
I'm trying to make a kind of search history containing the 3 last searched words. So I'm using 3 Session Variables: Word1 / Word2 / Word3. In order to get this history working, I need to put the...
15
by: Thomas Scheiderich | last post by:
I am trying to understand Session variables and ran into a question on how they work with data that is passed. I have an HTM file that calls an ASP file and sends the name either by GET or POST....
7
by: someone | last post by:
Let's say I have a Session timeout of 20 minutes. If the browser periodically request a graphic file, will that keep its Session alive? What keeps the Session alive? Is it the Session cookie that...
15
by: SFX | last post by:
If I have a session ID (string) can I somehow obtain the session object associated to that ID (it exist of course) ? I know this sounds wicked but I have a situation in which I have to make a...
13
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i...
1
by: TheDude5B | last post by:
Hi, I was wondering if it is possible to manually renew the sessionID? I have had a look around and not found anything about renewing it automatically. I was wanting to do this just to...
4
by: rgparkins | last post by:
Hello I am running out of time with a problem I have running PHP 5.04 and Apache 2.0 and really need help :(. I have a page that stores a variable in session but each time I reload that page the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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...

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.