My application needs to store cookies. When a user logs on I want to make sure that if the cookie does not exist create it and store value, but if it does modify it.
if(cookieExist)
{
cookiename = "value";
}
else
{
create a new cookie
then store the value;
}
Thanks for any help
You have to use
Request.Cookiesto get cookie value andResponse.Cookiesto add cookies