Link to home
Start Free TrialLog in
Avatar of KaranGupta
KaranGupta

asked on

Persistent and Non Persistent query

Persistent cookies: cookies are stored on your computer hard disk. They stay on your hard disk and can be accessed by web servers until they are deleted or have expired.

HttpCookie cookie = new HttpCookie(name);
cookie.Value = value;
cookie.Expires = Convert.ToDateTime("12/12/20083);
Response.Cookies.Add(cookie);
Non-persistent cookies: cookies are saved only while your web browser is running. They can be used by a web server only until you close your browser. They are not saved on your disk.

HttpCookie cookie = new HttpCookie(name);
cookie.Value = value;
Response.Cookies.Add(cookie);


Kindly suggest
Avatar of rambovn
rambovn
Flag of Germany image

what is your problem?
Avatar of KaranGupta
KaranGupta

ASKER

I want to verify that the definition and example is correct or not
ASKER CERTIFIED SOLUTION
Avatar of rambovn
rambovn
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial