Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Renew IIS session with an image request?

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Template Persistent Cache Initialization Failure  
Author Message
user2265

External


Since: Oct 11, 2004
Posts: 1



(Msg. 1) Posted: Mon Oct 11, 2004 12:26 pm
Post subject: Renew IIS session with an image request?
Archived from groups: microsoft>public>dotnet>framework>aspnet, others (more info?)

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

 >> Stay informed about: Renew IIS session with an image request? 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 2) Posted: Mon Oct 11, 2004 12:54 pm
Post subject: Re: Renew IIS session with an image request? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"A Traveler" <hitchhikersguideto-news DeleteThis @yahoo.com> wrote in message
news:eQlTKY5rEHA.1152@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
<a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</a>
<a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/" target="_blank">http://mvp.support.microsoft.com/</a>
<a style='text-decoration: underline;' href="http://www.iisfaq.com/" target="_blank">http://www.iisfaq.com/</a>
<a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running IIS
<a style='text-decoration: underline;' href="http://www.tryiis.com" target="_blank">http://www.tryiis.com</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Renew IIS session with an image request? 
Back to top
Login to vote
hesterloli

External


Since: Aug 22, 2003
Posts: 151



(Msg. 3) Posted: Tue Oct 12, 2004 2:11 am
Post subject: Re: Renew IIS session with an image request? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.

--=20
George Hester
__________________________________
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message =
news:cke2gl$qah3@kcweb01.netnews.att.com...
 > "A Traveler" <hitchhikersguideto-news.RemoveThis@yahoo.com> wrote in message=20
 > news:eQlTKY5rEHA.1152@TK2MSFTNGP11.phx.gbl...
  > > Hello,
  > >
  > > Given that a particular iis server has its session timeout set to =
the=20
  > > default of 20mins, what will renew the request in order to prevent =
it=20
  > > timing out? Is it only code-type things, such as ASP[X] pages, or =
will=20
  > > requesting an image file renew the session?
  > >
  > > We have an app for warehouse order entry, and some of the orders can =
be=20
  > > very long. So we want to put something on the order entry page to =
renew=20
  > > the session and keep the user from losing their work. Originally i =
was=20
  > > thinking a small iframe which would be hidden and just request some =
empty=20
  > > page every 5 minutes. If an image request will renew the session =
though,=20
  > > then i can simply have an image tag with some javascript to rotate =
the src=20
  > > attribute.
  > >
  > > Will that work, or do i need to actually run code of some sort =
against the=20
  > > server?
 >=20
 > You need to request an ASP to renew the session.
 >=20
 > --=20
 > Tom Kaminski IIS MVP
<font color=purple> > <a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/</font" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/</font" target="_blank">http://mvp.support.microsoft.com/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.iisfaq.com/</font" target="_blank">http://www.iisfaq.com/</font</a>>
 > <a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for =
running IIS
<font color=purple> > <a style='text-decoration: underline;' href="http://www.tryiis.com=20</font" target="_blank">http://www.tryiis.com=20</font</a>>
 >=20
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Renew IIS session with an image request? 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]