Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
Hi ,

I am facing a problem with my production environment , sometimes my application getting
logout continuously , in this case when i am restarting my browser then it's works again
. please help me out because it important for client point of view , agents not able to support properly .

WE are using entity-framework , .net framework , sql 2008 , and the application is also configured on load balancer .

Waiting for Reply ...
Posted
Updated 25-Jan-16 5:29am
v2
Comments
F-ES Sitecore 25-Jan-16 11:30am    
Is the load balancer configured for "sticky sessions"?
ZurdoDev 25-Jan-16 11:34am    
How can we help? We can't see anything.

Does your application log anything?

Look in the event viewer.
[no name] 25-Jan-16 23:13pm    
It is mostly problem with your load balancer. If your site hosted multiple web server and not implemented "Sticky Session/" then it may give random session. Means session is stored Webserver1 but the request goes to Webserver2 then it will tell you that session is not defined and get logout. So cross check it.

http://stackoverflow.com/questions/10494431/sticky-and-non-sticky-sessions

1 solution

logout porblem can be occure due to may causes .Some of then are as follow
1. if you use session in web.config then check sliding window work properlyor not, code of web.config are as follow
<authentication mode="Forms">
<forms loginurl="~/Account/LogOn" timeout="30" slidingexpiration="true">


Sliding Expiration increase tie of logout if user work continuessly
 
Share this answer
 
Comments
yatingautam 14-Dec-16 14:25pm    
Actually we have a web application and on same server we deployed our WCF service and consuming WCF service to in our web application . and we want that our user do not log out never after to increase productivity of business , because application related to customer service application for online business . so can you suggest me how changes we need in our configuration so user never automatic logout from the server .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900