[thelist] Virus Alert [most definitely [OT]] - thanks

Karen J. Bowen karen at miinx.com.au
Tue Apr 23 08:02:00 CDT 2002


Just wanted to say thanks for all the responses - I can resume opening
jpeg attachments!

And not sure why you think this is OT Mike, but it most definitely is.
Read the list guidelines, specifically point 7 --
http://lists.evolt.org/index.cfm/a/listinfo

<tip type="ASP Sessions" author="Miinx">

IIS by default sets Sessions to timeout after 20 minutes of inactivity.
  So if you're developing an application and need to test what happens
when session times out, how do you do it?

Here are 2 possible methods:

** Change the default timeout value via IIS:
Open up the Internet Information Services dialog, and right-click a
defined website or virtual directory.  Select the "Virtual Directory"
tab, click the "Configuration" button, then choose "App Options".  Make
sure "Enable session state" is selected (by default it will be), then
you can change the value in the "Session timeout" box underneath.  [Note
that you can also change this setting for the "Default Web Site" - but
be aware that this will then change the value for all defined sites
below it.]

** Set up a "Clear Session Values" page:
I recommend this method, as there's no chance of forgetting to change
the IIS settings back.  Create a new ASP page with the following code:
    <%
    Session.Abandon
    Response.Redirect (Request.ServerVariables("HTTP_REFERER"))
    %>
Add a temporary link to this page to your site's menu, and you can then
stop a session at any point with one click and be directed back to the
calling page - or, if you're using some sort of authentication, back to
the Login page!

</tip>

Cheers,
Karen
------------
Miinx Design & Development
e :: karen at miinx.com.au
p :: 03 9534 2659
w :: www.miinx.com.au





More information about the thelist mailing list