amit shukla

amit shukla

  • NA
  • 78
  • 65.2k

Session Value reset

Oct 23 2015 3:46 AM
Hello Friends
As i faced a big problem today. so i just want to discuss all of you, if any one have the answer please let me know.
the issue is "when i  login a MVC web application and  maintain a session and session contains a value and then we will go to dashboard page , in dashboard page session value is maintain properly and not null but after that i request  to another page and then  session value get null with in a second. but there is not any issue on local machine this issue is getting raise on server only and for first attempt only, but in second attempt login there is no issue in MVC Web Application. i also have define the session time in web.config file and i have used the state server setting also in web.config."
 
so  please suggest me is there any server setting issue or any other ?
 
<system.web>
<sessionState timeout="30" cookieless="false" mode="StateServer" stateConnectionString="tcpip=localhost:42424" ></sessionState>
<sessionState timeout="30"></sessionState>
</system.web>