Hi,
I am using cookies in asp.net web applicaiton to store the referrer name for 50 days. When the user login to the web application the referrer value from the URL is stored into a Cookie with Expiry date as 50 days.
But when the user logout from the web application this cookie gets cleared. In the logout button I have used below lines.
Session.Abandon ();
Response.Cookie s.Add(new HttpCookie("ASP .NET_SessionId" , ""));
Now i don't want to delete this cookie on logout.
Any help will be appreciated.
Thanks.
I am using cookies in asp.net web applicaiton to store the referrer name for 50 days. When the user login to the web application the referrer value from the URL is stored into a Cookie with Expiry date as 50 days.
But when the user logout from the web application this cookie gets cleared. In the logout button I have used below lines.
Session.Abandon ();
Response.Cookie s.Add(new HttpCookie("ASP .NET_SessionId" , ""));
Now i don't want to delete this cookie on logout.
Any help will be appreciated.
Thanks.
Comment