B
Brian Burgess
Hi all,
Anyone know of any special issues with storing cookies with ASP? I'm
trying this with two browsers: One is IE 6.0 with cookies set to
'prompt'. This has been working properly as any new site I goto seems
to prompt me to store their cookie. The other is Pocket IE on Pocket
PC 2002, with the cookies set to 'enabled'.
My problem is that the cookies dont seem to be being written with my
ASP. I dont get the prompt to store the cookie when I should. My
storage code looks like this:
Response.Cookies("AcctNbr") = nAcctNbr
Response.Cookies("MsgStart") = nMsgStart
Response.Cookies("MsgEnd") = nMsgEnd
Response.Cookies("AcctNbr").Expires = DateAdd("h", 15, Now)
Response.Cookies("MsgStart").Expires = DateAdd("h", 15, Now)
Response.Cookies("MsgEnd").Expires = DateAdd("h", 15, Now)
And the read code looks like this:
If Not(Request.Cookies("AcctNbr")="") Then
nAcctNbr = CInt(Request.Cookies("AcctNbr"))
End If
If Not(Request.Cookies("MsgStart")="") Then
nMsgStart = CInt(Request.Cookies("MsgStart"))
End If
If Not(Request.Cookies("MsgEnd")="") Then
nMsgEnd = CInt(Request.Cookies("MsgEnd"))
End If
Of course nothing is read in, but past that, my browser does not
prompt for storage either..
Any ideas?
Thanks in advance...
-BB
Anyone know of any special issues with storing cookies with ASP? I'm
trying this with two browsers: One is IE 6.0 with cookies set to
'prompt'. This has been working properly as any new site I goto seems
to prompt me to store their cookie. The other is Pocket IE on Pocket
PC 2002, with the cookies set to 'enabled'.
My problem is that the cookies dont seem to be being written with my
ASP. I dont get the prompt to store the cookie when I should. My
storage code looks like this:
Response.Cookies("AcctNbr") = nAcctNbr
Response.Cookies("MsgStart") = nMsgStart
Response.Cookies("MsgEnd") = nMsgEnd
Response.Cookies("AcctNbr").Expires = DateAdd("h", 15, Now)
Response.Cookies("MsgStart").Expires = DateAdd("h", 15, Now)
Response.Cookies("MsgEnd").Expires = DateAdd("h", 15, Now)
And the read code looks like this:
If Not(Request.Cookies("AcctNbr")="") Then
nAcctNbr = CInt(Request.Cookies("AcctNbr"))
End If
If Not(Request.Cookies("MsgStart")="") Then
nMsgStart = CInt(Request.Cookies("MsgStart"))
End If
If Not(Request.Cookies("MsgEnd")="") Then
nMsgEnd = CInt(Request.Cookies("MsgEnd"))
End If
Of course nothing is read in, but past that, my browser does not
prompt for storage either..
Any ideas?
Thanks in advance...
-BB