Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 10th, 2005, 10:46 PM
Registered User
Join Date: Jun 2003
Location: , , .
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"
       if (objChecker.HasAccess(MyTestFile) Then
           ' Need to reset the LOGON_USER
           ' Process values submitted and add to database table.
           ' 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.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 12:06 AM.

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