Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP 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 February 10th, 2005, 10:46 PM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Clearing a LOGON_USER

I am working on a Intranet application where I would like to have users authenticated each time they submit a request. This application is for a problem logging system where the web page would be displayed in a "public" area and I want to verify that certain users (NT Domain) are conducting certain transactions. Since multiple people would be using the same system I need to reset, or flush the Request.ServerVarriable("LOGON_USER"). I plan on using Response.Status = "401 Unauthorized" to force the logon prompt, which will force the page to re-submit. At that point I need to check Request.ServerVarriable("LOGON_USER") to see if the it is set. If so I can then use the PermissionChecker to test the user against a file and then add the data to a database.

if (Request.ServerVarriables("LOGON_USER") = "") Then
       Response.Status = "401 Unauthorized"
Else
       if (objChecker.HasAccess(MyTestFile) Then
           ' Need to reset the LOGON_USER
           ' Process values submitted and add to database table.
       Else
           ' return error message
       End if
End if

How can I force the browser to not resend the same user credentials? Is there a header that can be set. I have tried, Status 2XX, Expire = -1 etc.

Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
clearing out the form x_ray VB.NET 2002/2003 Basics 9 February 21st, 2006 04:44 PM
clearing the form europhreak Dreamweaver (all versions) 1 September 18th, 2005 03:35 AM
number of logon_user mateenmohd Javascript 3 September 7th, 2005 02:03 AM
Clearing TextBoxes peevee12 C# 2 June 17th, 2004 11:02 AM





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