login token expiring prematurely

Discussion in 'ASP.NET / ASP.NET Core' started by reachsoftwa, Dec 1, 2010.

  1. I have my forms authentication token set to 2880 (48 hours) but it seems to be expiring within a few minutes of inactivity and I'm redirected to the login page. This does not happen locally and I'm not doing anything in code to modify or change this token so it must be configuration

    Any help is appreciated.

    Code:
    <authentication mode="Forms">
    	<forms loginUrl="~/Account/LogOn" 
    		   timeout="2880" 
    		   slidingExpiration="true"
    	   />
    </authentication>
    Steven
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Try set your own machinekey in the web.config
     
  3. oh, great idea. I'd completely forgotten about that. I'll post back when I verify it works.
     

Share This Page