Ask a Question related to ASP, Design and Development.
-
Steve Lutz #1
Deleting Indexed Cookie
Hello,
On one of my webpages, I use a cookie to automatically log a user in:
Response.Cookie("USER")("USERNAME") = "Steve"
Response.Cookie("USER")("PASSWORD")= "Password"
This works, but when the user logs out, I want to delete this cookie. I used
the following code:
Response.Cookie("USER") = ""
Although the Cookie collection in the response object now has the correct
value (blank) for this cookie, IIS does not send the new cookie information
to the browser. I have tried this code after the <HEAD> element but before
the <BODY>, I've also tried it before any other code (HTML or ASP) on the
page. I have even tried Response.Cookie("USERID") = "NOTHING" and that
doesn't get sent to the browser. This is classic ASP, what am I doing wrong?
This works fine with non-indexes cookies.
Thanks
Steve
Steve Lutz Guest
-
HTTP::Cookie won't store sent cookie
Hi all, My script requests http://foo.bar.com/ with code that looks a little like this: my $ua = LWP::UserAgent->new; my $cookie_jar =... -
#25629 [Opn->Bgs]: session cookie being set to deleted when deleting a session
ID: 25629 Updated by: sniper@php.net Reported By: john at tarot dot com -Status: Open +Status: Bogus... -
Cookies set one time, I delete cookie, cookie is never set again!
I am having this problem: My PHP script will set a cookie, it's there in my /Cookies folder. I delete the cookie (I have to for testing purposes,... -
[PHP] deleting one cookie is deleting both..why? (tiny scripts)
--- Ryan A <ryan@jumac.com> wrote: If you are setting the cookie from bestwebhosters.com, the best way (my opinion) is to not specify the domain,... -
deleting one cookie is deleting both..why? (tiny scripts)
Hi again, I am setting 2 cookies like so:(setCookie.php) <?php setcookie("name1","1","0","",".bestwebhosters.com");... -
Curt_C [MVP] #2
Re: Deleting Indexed Cookie
just dont give it a .EXPIRES and it will vanish when they clsoe the browser
automatically.
--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
[url]http://www.Darkfalz.com[/url]
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------
"Steve Lutz" <slutz@comcast.net> wrote in message
news:O5gRaYSiDHA.3204@TK2MSFTNGP11.phx.gbl...used> Hello,
>
> On one of my webpages, I use a cookie to automatically log a user in:
>
> Response.Cookie("USER")("USERNAME") = "Steve"
> Response.Cookie("USER")("PASSWORD")= "Password"
>
> This works, but when the user logs out, I want to delete this cookie. Iinformation> the following code:
>
> Response.Cookie("USER") = ""
>
> Although the Cookie collection in the response object now has the correct
> value (blank) for this cookie, IIS does not send the new cookiewrong?> to the browser. I have tried this code after the <HEAD> element but before
> the <BODY>, I've also tried it before any other code (HTML or ASP) on the
> page. I have even tried Response.Cookie("USERID") = "NOTHING" and that
> doesn't get sent to the browser. This is classic ASP, what am I doing> This works fine with non-indexes cookies.
>
> Thanks
>
> Steve
>
>
Curt_C [MVP] Guest



Reply With Quote

