Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 11th, 2003, 04:48 PM
Authorized User
 
Join Date: Jun 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Authentication Timeout Problems

Hey guys.

This issues has stumped me - seems it should be working.

I have the timeout attribute of the forms element in web.config set to "10" - meaning (I think) that after 10 minutes, the cookie will expire, and the user will be prompted to re-login into the page designated in the loginURL attribute.

But it doesn't! After logged in once, I seem to have infinite access to the secure portion of the site.

I have the authentication definitions defined in the application web.config. It may be helpful to note that the secure directory has its own web.config with the users attribute of the deny element set to "?".

Below is the code for the application web.config:

<authentication mode="Forms">
  <forms loginUrl="admin/AdminLogin.aspx" timeout="1"></forms>
</authentication>
<authorization>
  <allow users="*"/>
</authorization>

And here is the code for the web.config in the secure directory:

<authorization>
  <deny users="?" />
</authorization>

Any help?

Thanks...

Ben





Similar Threads
Thread Thread Starter Forum Replies Last Post
timeout badboy1 ASP.NET 3.5 Basics 5 August 3rd, 2008 04:36 AM
Windows Authentication problems fraijo Internet Information Services 1 August 7th, 2007 07:09 PM
SQL authentication problems boucaner ADO.NET 7 February 11th, 2005 03:41 AM
User authentication problems bobbby Dreamweaver (all versions) 4 September 28th, 2004 12:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.