Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
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 September 21st, 2007, 02:46 PM
Registered User
 
Join Date: Sep 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Automatically expire authorization ticket

Looking for a way to automatically expire an authorization ticket. The scenario is that a user has been authenticated for a specific page, then moves to another page in a different folder. Would like to be able to force them through authentication again. I tried setting the timeout setting in the web.config file, but that only works for a refresh of the page. Another alternative would seem to be to not cache the page. I've found some examples of that but can't seem to get it to work properly.

 
Old October 16th, 2007, 12:30 PM
rlb rlb is offline
Authorized User
 
Join Date: Jan 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How about
Code:
FormsAuthentication.SignOut();
Session.Abandon();
Response.Redirect(webAuthLogout);
for the new page?
Have you considered configuring your subdirectory as new separate virtual directory so you can have a new web.config and consequently need a new login validation?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Building my own ticket tracker cf2006 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 August 31st, 2006 11:04 AM
How do I get a cookie to expire.... elladi Classic ASP Basics 1 November 22nd, 2004 12:25 AM
Retrieving a ticket number from spl database Calibus Classic ASP Databases 16 June 29th, 2004 03:49 PM
expire time isheikh BOOK: Beginning ASP 3.0 3 June 9th, 2004 09:08 AM
Page Expire Chris Marsh VS.NET 2002/2003 1 April 4th, 2004 12:02 AM





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