YAFLogo

nmduc
  • nmduc
  • 53% (Neutral)
  • YAF Forumling Topic Starter
11 years ago
I built a forum in server. Everything seem to be ok except one issue.

After user signed in for a few minutes, he would be signed out if he left computer for a minute. There is no issue in local. However, it happened in server.
Please help me to solve this problem. Thank in advance.
Sponsor

Dimi
  • Dimi
  • 100% (Exalted)
  • YAF All-the-Time
11 years ago
Originally Posted by: nmduc 

I built a forum in server. Everything seem to be ok except one issue.

After user signed in for a few minutes, he would be signed out if he left computer for a minute. There is no issue in local. However, it happened in server.
Please help me to solve this problem. Thank in advance.



It is in FAQ. IIS is responsible for that. Correct your web.config file, add keys. Something like that.


validationKey="64B4B83C13515830EC26B9B7C74E570D6A18961231803E4F5C1AD45469794A0DA9E96D478FFE7890CB9B781024182AEE814CAF3C26AD155B87ED70AEB3C5E371"
decryptionKey="7E8790DB77E0B02DC474E82695583C801238670FB6AAB439A9879D5AB7BAD709"
validation="SHA1"
decryption="AES"
/>

Read about these keys on the Internet and make a quick search on the forum. That's all you need. Then your users will stay forever even after IIS restart.

P.S. it's related to IIS recycling.
Dimi
UserPostedImage
nmduc
  • nmduc
  • 53% (Neutral)
  • YAF Forumling Topic Starter
11 years ago
Thank you.
I will do the test.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button