problem with write cookie

when i try to write cookie on ASP page with the line like this
<% Response.Cookie ("username")="test1" %>
i get the message: object doesn't support this property ormethod: 'cookie'
i use windows 2000 server
any suggestion?
thank you
TOP [ Mi, 25 Januar 2006 11:15 ] [ ID #1158443 ]

Re: problem with write cookie

Try changing this:
<% Response.Cookie ("username")="test1" %>

To be more like this instead:
<% Response.Cookies("username") = "test1" %>

Best regards,
-Paul
www.Bullschmidt.com - Freelance Web and Database Developer
www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips
Paul [ So, 29 Januar 2006 19:05 ] [ ID #1163512 ]
Webserver » microsoft.public.inetserver.asp.db » problem with write cookie

Vorheriges Thema: Changed Computer Name = Problems
Nächstes Thema: SQL Injection solution:( ?