Click to See Complete Forum and Search --> : Resonse.cookie problem
gerjanschoemake
03-15-2006, 03:30 PM
In my page I get an error on the third line (formvan):
Response.Cookies("rit").Expires = Date + 65
Response.Cookies("rit").Domain = "test.nl"
Response.Cookies("rit")("formvan") = formvan
Response.Cookies("rit")("formnaar") = formnaar
It's an unspecified error. I believe it did work before, but I'm not sure.
Is it possible that I get this error because
Response.Cookies("rit")("formvan") already contains a value?
Tnx in advange,
Gerjan
Get Rid of the Rit. Use Rit Out.
Try:
Response.Cookies("formvan") = formvan
Response.Cookies("formnaar") = formnaar
chrismartz
03-16-2006, 05:33 PM
There is no reason to get rid of the 'rit' because that is allowed with cookies. When you do a response.cookies command, it over-ides anything currently in that cookie. Could you please give the exact error? Make sure you have friendly errors turned off too!
gerjanschoemake
03-17-2006, 06:54 AM
Thank you for your reply.
I have friendly errors turned off and get the following error:
error '80004005' (and ofcourse the line where the error occurs:
That's the line:
Response.Cookies("rit")("formvan") = formvan
Please post the entire error message. The error number alone won't tell us much, as there are different variations of that particular error. Please post more of your script, as that alone doesn't not tell us much either.
Make sure you're not expecting a Request.Cookies instead of a Response.Cookies.
What is the value of formvan? Where are you getting the value of formvan from?
You have to give us more.
gerjanschoemake
03-18-2006, 07:11 AM
It was the whole error, it did not say anymore.
Because I did not necesarry need cookies, I solved it with using sessions instead.
Ok. Just remember that sessions use cookies as well.
Cheers