Click here to Skip to main content
15,312,257 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have checked remember me,and created persistent cookie.will be there any difference if i close browser or close my asp.net development server.
Posted
Comments
Sergey Alexandrovich Kryukov 20-Feb-12 19:41pm
   
Difference between what cases?
--SA

Of course there will be a difference. If you close your browser, you can open it again and see the same page. If you close the HTTP server (no matter which one), you won't be able to see any pages except those stored in the browser cache and not attempted to reload. :-)

I'm pretty much sure you wanted to know something else, but my reply should remind you to ask questions correctly.

[EDIT]

OK, as to the question: one of the names of the cookie is the browser cookie. They are stored on the client side and belong to a particular browser and not related to a server:
http://en.wikipedia.org/wiki/HTTP_cookie[^].

If should clear your concern.

—SA
   
v2
Cookies are stored in a persistent file, unless you're browsing in incognito/private mode, and generally stored against a domain. So as long as you restart the server on the same domain (localhost?) and use the same browser, the cookies should still be available.

Remember that allowing persistent authentication/authorisation cookies can be a security risk if it bypasses the normal password prompt. You may want to consider hashing the cookie content together with the user's IP or something similar to avoid session hijacking.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900