My Cookie wont die :0(

I make a asp call with this index.asp?nytsprog=ja
The script looks like this


<%
if request("nytsprog") = "ja" then
respons.cookies("sprogkalvi") = "null"
end if
if request.cookies("sprogkalvi") <> "" then
%>
But it aint workin I get this error message:
Microsoft VBScript runtime error '800a01a8'

Object required: ''

/index.asp, line 5

What am I doing wrong ?

Comments

  • on line 5 that is

    respons.cookies("sprogkalvi") = "null"

    the spelling of response is wrong

    it must be this way
    response.cookies("sprogkalvi") = "null"




    : I make a asp call with this index.asp?nytsprog=ja
    : The script looks like this
    :
    :
    : <%
    : if request("nytsprog") = "ja" then
    : respons.cookies("sprogkalvi") = "null"
    : end if
    : if request.cookies("sprogkalvi") <> "" then
    : %>
    : But it aint workin I get this error message:
    : Microsoft VBScript runtime error '800a01a8'
    :
    : Object required: ''
    :
    : /index.asp, line 5
    :
    : What am I doing wrong ?
    :


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion