It is pretty simple. Until you set a session cookie, the cookie is set in the browser.
I do it here ... when the user logs in and wants me to remember his username:
Set cookie in ASP.NET:
Response.Cookies.Add(new HttpCookie("RememberMeUserName", owner.Username));
View value in ASP:
Response.Write(Request.Cookies("RememberMeUserName"))
Both ASP.NET and ASP pages must be on the same domain name.
source share