Session State Setting web config


how to configure web config for storing session state in out process

If you want to store session in sql server

modify your web config as follow

<sessionState mode="SQLServer" sqlConnectionString="data source=server=servername;uid=username;pwd="password"/>


and if want to store sessioin in state server than modify web config as follow

<sessionState mode="StateServer" stateConnectionString="127.0.0.1:42424"
cookieless="false" timeout="20" />

and Start ASPNET Services
Go to control panel
Administration tools
services
ASPNET state services (right click and start)


now session will store on state server


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: