QUOTE(eclipsed4utoo @ 28 Aug, 2008 - 07:14 AM)

I use the following code to check to see for a cookie is null. it's C#.
c#
if (Server.HtmlEncode(Request.Cookies["Settings"]["ProductSelected"]) != null)
{
productSelected = Server.HtmlEncode(Request.Cookies["Settings"]["ProductSelected"]).ToString();
}
my only difference is that I use "Server.HtmlEncode".
Hey guys! I'm really sorry i've not responded to this quicker... i suscribed to the thread with auto email notification but not recieved any emails so assumed no one had replied!
my code is unfortuantly in VB

But i'll try and do something simular to the example above and i'll post back if i find anything... I think i got all confused because the code i was using was example code of how to check for cookie presence... (which is wrong lol)
I'll post back if im still banging my head against a wall. cheers =D
EDIT*
I found what was going wrong!!! =(
The following code works:
CODE
If Not Request.Cookies("userInfo") Is Nothing Then
but this code is bad:
CODE
If Not Request.Cookies("userInfo")("username") Is Nothing Then
This post has been edited by L2wis: 31 Aug, 2008 - 10:32 AM