Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design 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 March 2nd, 2006, 08:59 AM
Authorized User
 
Join Date: Feb 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page Expiration?

Hi

I'm building a web site using asp.net (C#). I want the opened page to expire if the user is inactive for a certain period of time e.g. 20minutes, and when the page is expired I want to redirect the user to login Page.

 
Old March 6th, 2006, 09:02 AM
Authorized User
 
Join Date: Feb 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found that you can actually use this code in web.config file, but it is not working properly, because the pages didn't expire, or maybe i did something wrong

<system.web>
<authentication mode="Forms">
<forms loginUrl="Login.aspx" protection="All" timeout="20"/>
</authentication>
</system.web>

 
Old March 7th, 2006, 12:12 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

http://p2p.wrox.com/topic.asp?TOPIC_ID=29328






Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Expiration Dates of Emails cvn6565 ASP.NET 2.0 Professional 0 October 16th, 2006 02:48 PM
Session expiration manoj_k79 Classic ASP Basics 1 October 13th, 2006 07:19 AM
Cache Expiration Doesn't Expire in the given time! flyin General .NET 0 August 10th, 2004 04:19 PM
Validate Expiration date mariakovacs Classic ASP Basics 4 January 26th, 2004 12:53 PM





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