Session variable times out????

M

Mike

I have a site that has a login page which uses a dbase with asp to grant
access. If they are verified as a valid user there is a session variable
that is set that all of my pages look for to see if the user is valid.

The variable that gets set is:
Session("ValidUser") = True

Then on my pages I have this code:
<%
If Session("ValidUser") = False or IsNull(Session("ValidUser")) = True then
Response.Redirect"../login.htm"
End If
%>

If the user is navigating the site everything works fine. But if they leave
the site open and do not use it for about 10 min. and try to use it again it
takes them back to the login page and they have to login before they can use
the site again.

I am guessing that the Session("ValidUser") = True has a default 'timeout'.

So, my question is....Can the Session("ValidUser") = True be set to timeout
in 30 min. not 10 min.?

This is on a company intranet so I am not worried about people leaving it
open.

Mikeal
 
T

Thomas A. Rowe

The ASP session time-out can be easily change from the default 20 mins under
the specific web site via the IIS MMC, Applications | Configure, then one
tabs.

However since this is a corporate intranet, you might consider validating
user via their Windows User account, if the users also have to log in to the
network.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top