Microsoft
Software
Hardware
Network
Question : Classic ASP Cookie Error
At least some of my website visitors (possibly all) are getting the following error when my script is setting the expiry date of a cookie.
It happens the first time a user calls the page, but if they refresh it works fine.
Microsoft VBScript runtime
Type mismatch: 'Response.Cookies'
/locale.asp, line 24
23: Response.Cookies("locale")
= Session("locale")
24: Response.Cookies("locale")
.Expires = DateAdd("m", 6, Now())
I can reproduce the problem and if I view the cookie information in IE developer tools immediately after the error, that cookie exists and the expiry date is correct, ie. 6 months from today.
Answer : Classic ASP Cookie Error
you are assigning Session("locale") into Response.Cookies("locale")
...
seems like for the 1st time Session("locale") does not exist....
during refresh that session gets created and thus does not give any error
Random Solutions
A non-SYN packet was dropped because it was sent by a source that does not have an established connection with the Forefront TMG computer
Upgrade Exchange SP2 to SP3
WHat is the recommended size for the swapfile for my SQL Server ?
3d barcodes (q-codes)
Installing PHP XP (IIS 5.1)
prstat vs top command
Exchange 2010 on Windows Server Enterprise 2008 SP2 Locking Up
Modifing the configuration of a PIX 515 with Fail-over license
Post data back to jquery
Replacing Keyboard on Toshiba Portege A600