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.
|