?
Solved

Set session timeout with windows server 2003

Posted on 2006-06-02
5
Medium Priority
?
4,720 Views
Last Modified: 2012-06-27
I have developed a system. Now the system is running well, except that when user fill in their form, they may take more time longer than 20 min to finish it, and they will be logged out by the system automatically after they click the submit.

I have tried <%session.timeout = 100%> in my page, ,but it doesn't work like i did in windows server 2000.

Please help on it.

Best regards,
xiong
0
Comment
Question by:xiong8086
  • 3
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
SimonBlake earned 400 total points
ID: 16815071
One of the quickest ways to solve this problem is to have a hidden <Iframe> on your page that the user fills that references as self updating page ever 5 mins or so...

<iframe height=0 width=0 frameborder=0 src='keepalive.asp'>


keepalive.ap
<html>
<head>
<meta http-equiv="refresh" content="600">
</head>
</html>
0
 
LVL 3

Author Comment

by:xiong8086
ID: 16815143
if the form is finished half, suddenly refresh the page, then the data will be lost.
0
 
LVL 7

Expert Comment

by:SimonBlake
ID: 16815178

No it won't - it's only the iframe that refresh's, not the master page that contains it, so what the user is entering is safe, and the keepalive.asp keeps the internal IIS session alive.

Simon.
0
 
LVL 3

Author Comment

by:xiong8086
ID: 16815213
I got quite a lot of forms.

other than that, can I find an easy way to solve it, for example to extend the session.timeout longer, either by coding or server configuration?

thanks.
0
 
LVL 7

Expert Comment

by:SimonBlake
ID: 16815228
You can change the session timeout on the server, but this has two problems.

1. Longer sessions use more memory, for longer - so you will have to be careful watching memory resources on a busy site. You can change this in the IIS admin system.

2. User's - however long you set the timeout to be, users will always take a long time - the classic one is starting a form, then going to lunch half way through so you could have someone with a 1 hr period where nothing is done.

Simon.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question