figuring out why asp.net authentication ticket is expiring

后端 未结 3 390
死守一世寂寞
死守一世寂寞 2021-01-13 02:49

I need help figuring out why my authentication ticket is expiring after about an hour on my hosted website. But if I run the site locally the authentication ticket stays ali

相关标签:
3条回答
  • 2021-01-13 02:50

    Have you asked your hosting provider if the machine.config has this set to a diferent value? Settings on machine.config will override the web.config.

    0 讨论(0)
  • 2021-01-13 02:59

    I added a machinekey entry in system.net. Something like this:

        <machineKey validationKey="aaa"
        decryptionKey="bbb" validation="SHA1" />
    

    and now it keeps the user logged in. However, now it seems like I am having performance issues. The page used to take roughly 500ms to load now takes about double that time.

    0 讨论(0)
  • 2021-01-13 03:06

    I would try several things in troubleshooting this:

    • IIS version & settings between your localhost & hosting. Most likely there are some differences in application pool setting
    • In IIS 7, there is a special setting for this: read here
    0 讨论(0)
提交回复
热议问题