I find persisting data in the Session
really useful, however, by nature it expires when the browser is closed (cookie with expiry set to clear at end of session).
I especially like how it is written transparently so i dont have to worry about auth-ing the user or generating any unique id's.
My question is, is there something in the .net library that is similar to Session, but will persist beyond the browser session, or even better allow me to set an expiry date?
The alternative would be to manually insert and retrieve HttpCookie
objects into the request and response objects, whereby i would have to generate the unique identifier manually. If this is the case, how would i would generate this identifier?