Michel Posseth said:
Yes that would also be an option , for the OP i didn`t mention it cause i
have bad experiences with it`s usage
personally i prefer a custom solution cause it is much more lightweight
( you only need to implement it where neded) you can then inmediatly use
the data in your BL, with a state server you do not end up with usable
data in your database but must perform extra roundtrips .
The purpose of a state sever is to keep session state for any ASP.NET Web
solution, which can be done at the BLL as well. It's not a good solution
IMHO if the ASP.NET Web developer must keep session state by their own
devices - not good at all.
As long as you do not have a load balanced server farm and a rich IT
budget i would say Keep It Bloody Simple
I disagree here becuase what you purpose is not a simple solution of just
using an ASP.NET state server, if a Web server or Web servers do not have
the resouces to hold session state in memory for the many clients that a Web
server would service.
ofcourse above is just my opinion , maybe someone else has good
experiences with it but i was once forced to use it ( server farm with
load balancing ) and it needed a lot of extra coding wich in my opinion
could be much simpeler .
No, an ASP.NET solution using a state server is pretty much transparent to
the ASP.NET Web developer, if the infrastructure is set-up properly.
Another option could be to create a BL structure for the required
information and serialize the data to disk this is fast , easy to
implement and only requires a location weher your process has read /
write access to write the XML or Binary data , if the session ends you
just delete the file
Of course, you know that none of that would fly in a ASP.NET N-tiered
enterprise solution for a single Web server solution or a Web server farm. I
simply would have nothing to do with what you have proposed above in no way,
shape, form or fashion would I do such a thing in keeping state. But that's
just me and my opinion on what you have stated.
I have had nothing but good experiences using ASP.NET solutions that keep
state using an ASP.NET state server as part of the infrastructure. If things
are set-up properly, session state takes care of itself without the ASP.NET
Web developer worrying or being concerned about how state is keep for a give
ASP.NET solution that needs to keep state, when using an ASP.NET state
server as part of the WEB server infrastructure.
And keeping objects in a viewstate, what can be said about it? ;-)