...

View Full Version : cookies error



ahmedsoliman
02-12-2003, 10:03 PM
i typed this code :

Response.cookies("Counted")="true"
Response.cookies("Counted").Expires="july 4, 2004"

then i had this error:

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'Expires'

it was working before but now dosen't , i don't know why?
i installed .net framework and visual studio.net is that the reason

ahmedsoliman
02-13-2003, 06:00 PM
plz:confused:

arnyinc
02-13-2003, 06:22 PM
Do you have the response.cookie commands before your <html> tag? Try:



Response.cookies("Counted").Expires=#july 4, 2004#


http://www.w3schools.com/asp/asp_cookies.asp

ahmedsoliman
02-14-2003, 12:07 AM
it works with two # around date , thank you :), but i dont know why? although " july,4,2003" is right and it was working before.

whammy
02-14-2003, 01:45 AM
It's the way you're referring to the date. If you google it there are many solutions for this.

:)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum