How can I make login sessions last longer?

Discussion in 'ASP.NET 2.0' started by jamesgurung, Jul 5, 2007.

  1. At the moment users who log in tend to get automatically logged out after about 10 minutes of inactivity; how can I increase this?

    As you can see I have tried to change the roleManager cookieTimeout property, but this seems to have had no effect. Is it even related?

    Here's my web.config:
     
  2. Thanks very much for your quick response.

    The solution seems to have been 'to add a machinekey into the web.config file, thereby guaranteeing that the encryption/decryption will work between app restarts', but I have no idea how to do that. I've just looked at the MSDN page for mackineKey and it seems confusing. Would someone mind explaining what code to add, and where?
     
  3. Thanks very much, that's exactly what I was looking for. I'll have to see if it works!
     

Share This Page