Server-side cookies

  • Thread starter Thread starter Homer J. Simpson
  • Start date Start date
H

Homer J. Simpson

Hi there,

I need to maintain users choices among different sessions.
So i'd like to use a kind of server-side cookies, just to be sure he won't
delete or reject the cookie, depending on the client security level.

But i can't find a way to do it, except using the FileStream Class.
Any other ideas ?

Thxs in advance,
.....................................................................
Homer J. Simpson
Duff MVP - Donuts & Onion Rings Certified
.....................................................................
 
You don't use cookies on the server side, but you have several options for
preserving state. You can use the Session object to store information for a
given session, but this requires that the user allows session cookies. The
workaround is to use cookieless sessions. Alternately, you could persist
data into the ViewState, which is stored encrypted in a hidden field and
will make the round-trip to the browser.
 
Chris,
Thanks for your answer.

My problem is :
I want to preserve user's parameters even if is not connected.
I should be able to restore his stored datas from one session to an other.
Session object or Viewstate is lost when he quits, so i can't use them. The
best method would be to store this in a DB, but i'd like to do it in a
simpliest way...

.....................................................................
Homer J. Simpson
Duff MVP - Donuts & Onion Rings Certified
.....................................................................
 
Back
Top