Re: Cookie and Webpage Question
- From: "Mike" <mikey@xxxxxxxx>
- Date: Thu, 7 Dec 2006 10:45:55 -0700
Mark,
Thanks for the post. I am assuming that what you mean by sticky sessions is
use ASP.Net Session state InProc mode. This method is not scalable and I do
not want to force my user to access the same webserver (it kind of defeats
the purpose). You do make a good point about cookies and probably should
use a different method. I really do not want to store session state in a
SQL DB because:
1) I am not storing a lot of data
2) Not scalable
3) Performance
I will continue to look into session state.
Thanks
"Mark Rae" <mark@xxxxxxxxxxxxxxxxx> wrote in message
news:%23cjcnJiGHHA.4712@xxxxxxxxxxxxxxxxxxxxxxx
"Mike" <mikey@xxxxxxxx> wrote in message
news:OjEeeCiGHHA.3468@xxxxxxxxxxxxxxxxxxxxxxx
Upon login into my application I stored user data (userid, ...) in a
cookie to be used throughout the application.
Hmm...
One particular form is very complicated that uses AJAX and many AJAX
postbacks it needs data from that cookie. Is it bad practice to keep
opening that cookie to get data each request or should I store it (hidden
fields ...)?
Why can't you use use ViewState? Read the cookie when the page first loads
and cache it in ViewState.
In the future this application will be on multiple webservers (replicated
with a load balancer in front) so my options are limited.
In what way(s) are your options limited...? You're talking about
non-sticky sessions...? There are plenty of solutions for that...
http://www.microsoft.com/technet/archive/itsolutions/ecommerce/maintain/operate/d5nlb.mspx?mfr=true
http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/iis/deploy/confeat/webclust.mspx
http://technet2.microsoft.com/WindowsServer/en/library/6ac4a6ba-1c0c-46be-8c6a-2c2e0e567e981033.mspx?mfr=true
I chose not to go with storing session state in SQL DB because of
performance issues.
Performance issues...?
I have a small amount of data that I need to store per session which can
be stored in a cookie and it is a simple solution.
Presumably this is a public website? What are you going to do if people
have disabled cookes...?
Any suggestions?
Use sticky sessions.
.
- Follow-Ups:
- Re: Cookie and Webpage Question
- From: Mark Rae
- Re: Cookie and Webpage Question
- References:
- Cookie and Webpage Question
- From: Mike
- Re: Cookie and Webpage Question
- From: Mark Rae
- Cookie and Webpage Question
- Prev by Date: Re: reference to system.web.ui.page
- Next by Date: Re: Getting content of an IFrame
- Previous by thread: Re: Cookie and Webpage Question
- Next by thread: Re: Cookie and Webpage Question
- Index(es):
Relevant Pages
|