[thelist] ASP/VBScript

Luther, Ron RLuth at telxon.com
Tue Sep 19 15:58:23 CDT 2000


Hi Dan,

I don't believe so ... this is really the same as Aardvark's suggestion ...
if there is no cookie, then the HasKeys property should return a false in
{Request.Cookies("name-you-saved-cookie-as").HasKeys}.

I wish I were home so I could test this ... Heck, I wish I were home ---
period!!

Got PWS or IIS up at home/work? ..... Try setting "Acookie" with


<%
Response.Cookie("Acookie")("Fruit") = "Banana"
Response.Cookie("Acookie")("Desc") = "Tasty Yellow Thing"
Response.Cookie("Acookie").Expires = Date + 30
%>


Then test your page with the Request.Cookies("Acookie").HasKeys

Then delete the cookie and retest.

Sorry .... I'll be home in a day or two ... grab some clothes and leave
again ... Hmmm ... I think I'll be home this weekend ... You'd probably
better test it yourself....


Ron L.

		-----Original Message-----
		From:	Bailey, Dan [mailto:dbailey2 at healthaxis.com]
		Subject:	RE: [thelist] ASP/VBScript

		What if "name-you-saved-cookie-as" is not present on the
client's machine,
		though?  Do I run into a runtime error?
		




More information about the thelist mailing list