c# 2.0 - ASP.net Session in SQL or cookie -
i deployed asp.net web site 2 servers , put them behind load balanced environment. problem performance slow. simple button event, takes long time finish simple button event. however, if access site separately (by server’s address), performance good. our system engineer told me application handles session state in process if runs on 1 server, not handle clustering. so, suggested should use session object in code store session in sql server, or cookie.
i using session variables store session.
i kind of new asp.net , not sure mean , how can accomplish in .net code (c#)?
thanks.
here link start off: asp.net session state
you want go out of process mode servers access 1 session process on designated server, if speed top priority or sql server mode servers access 1 database if reliability top priority out of process mode if process dies session data lost similar how in-process session handling works.
no coding changes storing session data needed, initial configuration of environment , web.config change.
Comments
Post a Comment