Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 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 October 11th, 2008, 04:44 PM
Friend of Wrox
 
Join Date: Sep 2007
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
Default How to clearn http Authenication.

Hi

I have this

 string sentData = Request.ServerVariables["HTTP_AUTHORIZATION"];

What gets the authorization data they put in the default login box that gets generated byt his code

 Response.AddHeader("WWW-Authenticate", "BASIC Realm=My Realm");
                    Response.StatusCode = 401;

now I am finding once the user puts in a valid password and username it seems to stay forever. Like if I stop the website and then restart it again the username and password will be still in the HTTP_AUTHORIZATION part. So it is not getting deleted. The only way I can get rid of it storing the password and authentication is by clearing the http_authentication by using firefox web developer kit what can clear data.

 I am wondering how can I do something like that in code? Like I am not sure how to set HTTP_AUTHORIZATION back to null.






Similar Threads
Thread Thread Starter Forum Replies Last Post
What is an authenication Header? chobo2 ASP.NET 2.0 Basics 1 October 3rd, 2008 09:05 PM
deployment - error with sql server authenication ezhil BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5 0 November 22nd, 2007 07:28 AM
IIS and WebDAV authenication settngs suhelahmed Internet Information Services 0 August 21st, 2006 04:46 AM
Authenication Question jroxit ASP.NET 2.0 Basics 1 December 19th, 2005 05:00 AM
HTTP Status 405 - HTTP method GET .... nsakic Servlets 1 January 25th, 2004 04:50 PM





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