Cookie problem...
The code, which is at the top of an ASP page and before the HTML tags, is as follows:
<%@ Language=JavaScript %>
<%
// Set Cookie expiry date...
var nextyear = new Date();
nextyear.setFullYear(nextyear.getFullYear() + 1);
Response.Cookies("KeySettings").Expires = nextyear.toLocaleDateString();
It then goes on to set various keys, although even this doesn't work now - even if I comment out the bit above!
Instead I get the message:
Error Type:
Microsoft JScript runtime (0x800A000D)
Type mismatch
/SetUserSettings.asp, line 7
By the way, Line 7 is the line:
Response.Cookies("KeySettings").Expires = nextyear.toLocaleDateString();
I then have to close the page manually.
I'm developing this using InterDev and IIS 5.0.
Any help would be appreciated. Many thanks.

