Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms Authentication Error

Status
Not open for further replies.

schwarem

Programmer
Apr 18, 2002
159
US
I have an application using forms authentication. When the Session times out, it just clears all the session variables and does not force the user to log back in. Now the user is essentially logged in without any credentials. What is causing the forms authentication to not force the user to log in?
 
you can check if the session has expired and then redirect them to another page.

 
the redirect should be set in the web.config i thot.
and a deny unknown users

are you sure you are setup right in the config?

Code:
    <authentication mode="Forms">
      <forms protection="All" timeout="90" slidingExpiration="true" loginURL="login.aspx">
      </forms>
    </authentication>
    <authorization>
      <deny users="?" />
    </authorization>
 
Here is the section of the web.config file I have.

Code:
		<authentication mode="Forms">
			<forms name=".DOCAPP" loginUrl="login.aspx" slidingExpiration="true" protection="All" path="/" timeout="30"/>
		</authentication>
		<authorization>
			<deny users="?"/>
		</authorization>

The session ends properly. It loses the session variables, but it does not force the user to log back in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top