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 December 9th, 2009, 04:25 PM
Registered User
 
Join Date: Oct 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cookie delete on logout

I have a site that required validation using active directory. So i password protected the folder, and every time someone need to access that section a window pops up to ask for the user and password of the domain. This site opens as a pop up.

After the user logs in, the employee has accesss to forms, etc. there is a link on the top that says logoff and i have try every script on the web, but keep getting errors, or does not work etc.

how can i expire the session or delete the cookie so when the person clicks again it ask for credentials.

Here are the ASP scripts i have try and the errors i get, dont know if asp.net script will work as i am new to asp environment.

Number 1
<% Session.Abandon() %> no error, but does not accomplish what i need


Number 2
<% Response.Cookies("cookiename") = "" %>

Error: Cookies object error 'ASP 0162 : 80004005'

Cannot Modify Cookie

/forms/logoff.asp, line 2

The cookie 'ASPSessionID' cannot be modified. It is a reserved cookie name.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How Can I Delete Cookie files. MICZ VB How-To 4 August 18th, 2007 04:56 AM
Can't delete cookie...! Snib Beginning PHP 9 July 15th, 2007 10:32 PM
logout TIME and logout DATE crmpicco Classic ASP Databases 2 January 20th, 2005 12:01 AM
logout TIME and logout DATE crmpicco Classic ASP Basics 0 January 19th, 2005 07:57 AM
How Can I Delete Cookie files. MICZ Pro VB 6 2 August 13th, 2004 10:44 AM





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