YAFLogo

ccrookston
  • ccrookston
  • 53% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
The option to remember users when they log in never seems to work. No matter what platform (mac, pc) or browser, users have to log back in every time. Also, I have notices and other users have too, that often a session will be lost while they are browsing around the forum.

Is this configurable? Anything I can do?

Sponsor
squirrel
12 years ago
You need to research adding a machineKey and DecryptionKey to your web.config and save/upload. The issue is that the Application Pool serving YAF is restarting, and without those keys in the web.config the encryption used in the forms is not valid when the application restarts and so the cookie is invalidated and they are forced to re-login.

There are several posts here regarding this issue, as well as a sample set of keys and where they go in the default YAF web.config from versions 1.9.5.5 and up --


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
ccrookston
  • ccrookston
  • 53% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
Thank you for the info!

Could I ask a favor? I have been looking for the posts you mentioned that give samples of how to add a machine key to the web.config, and all I am finding is more posts that say, "There are posts that talk about this."

Any chance you could provide a link to one of the examples? Also, (just an idea... and I'm brand knew to YAF...) if this is an ongoing issue that is asked about frequently, maybe there could be a sticky topic on this? Or, a knowledge base article? ... just tossin' out ideas.

Casey

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
12 years ago

Thank you for the info!

Could I ask a favor? I have been looking for the posts you mentioned that give samples of how to add a machine key to the web.config, and all I am finding is more posts that say, "There are posts that talk about this."

Any chance you could provide a link to one of the examples? Also, (just an idea... and I'm brand knew to YAF...) if this is an ongoing issue that is asked about frequently, maybe there could be a sticky topic on this? Or, a knowledge base article? ... just tossin' out ideas.

Casey

Originally Posted by: ccrookston 

It is in the Dokumentation under Installation (4b)

http://yafnet.codeplex.com/wikipage?title=Installation&referringTitle=Documentation