Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Server-side cookies

0 views
Skip to first unread message

Homer J. Simpson

unread,
Oct 15, 2003, 8:53:20 AM10/15/03
to
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
....................................................................


Chris Jackson

unread,
Oct 15, 2003, 11:29:10 AM10/15/03
to
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 Jackson
Software Engineer
Microsoft MVP - Windows XP
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Homer J. Simpson" <not@home> wrote in message
news:3f8d434a$0$236$4d4e...@read.news.fr.uu.net...

Homer J. Simpson

unread,
Oct 15, 2003, 11:45:00 AM10/15/03
to
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...

0 new messages