Maintaining Session State in a Web Farm

Results 1 to 2 of 2

Thread: Maintaining Session State in a Web Farm

  1. #1
    Sanjay Tripathi Guest

    Default Maintaining Session State in a Web Farm

    Can anybody suggest an efficient way to store session state in a web farm. I am working on a project that needs to keep track of user selections in the form of some entities(most probably stored as propertybags). How can the session-level state be tracked in a web farm?<BR>Thanks,<BR>Sanjay

  2. #2
    don frazier Guest

    Default RE: Maintaining Session State in a Web Farm

    You have a couple of choices:<BR>1) Create a ton of hidden fields on a form that contain the information and send this to each page you send to the client. The hidden form fields can contain your state information. It&#039s relatively easy to create an ASP "object" to get and set your state info and include it where necessary. This obviously increases the amount of data sent back and forth across the network and is potentially open to hacking.<BR>2) Save "state" info in your data base and track it with a "cookie", much like the hidden form field or a query string parm. More secure, less traffic but has server overhead as each page will hit the backend DB (internal network traffic) every time the user moves from page to page in your application.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts