YAFLogo

50Panhead
  • 50Panhead
  • 53% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
Members of our Forum OFOPOS have ask if there is any way to have the login setup so they don't have to login every time they come back the next day or after they close their web browser

Even if we check mark the box for "Auto Login” it does Automatically log you in.

Thanks.

50Pan

Sponsor
doxa123
  • doxa123
  • 100% (Exalted)
  • YAF All-the-Time YAF Version: 3.1.14
14 years ago
squirrel
14 years ago
DotNetNuke had this problem as well for a long time - you would check 'remember login' and the system would still log you out. I will look through my old web.configs to see what setting I changed that told DNN to keep the cookies for more than 24 hours. I had my site set for 30 days from last visit. This is most likely a .NET setting and not a YAF issue per-say...

FWIW - I've been logged into this forum for atleast 4 weeks now without having to log back in - so it leads me to think there is something in the web.config that might be affecting your cookie storage. Being 'auto-logged-in' is based on cookies stored in the browser.


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
14 years ago
Login remember is a function of Forms Authentication and ASP.NET. You just need to modify your web.config file:


<authentication mode="Forms">
	<forms name=".YAFNET_Authentication" protection="All" timeout="43200" cookieless="UseCookies"/>
</authentication>

The important thing is the timeout="" -- that's the timeout of their login cookie in minutes.

squirrel
14 years ago
You beat me to it, but that's the trick - was the situation I was having with DNN cookies and thought it would apply to YAF as well --
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
50Panhead
  • 50Panhead
  • 53% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
Thanks

I'll have to talk to some of the I.T. people at work. Your answers are a little beyond my knowlege but I will get there.

Merry Christmas and Happy New Year to all.

50Pan

squirrel
14 years ago

Thanks

I'll have to talk to some of the I.T. people at work. Your answers are a little beyond my knowlege but I will get there.

Merry Christmas and Happy New Year to all.

50Pan

Originally Posted by: 50Panhead 

All you have to do is edit the web.config file in your forum's root folder, look for the line below:

    <forms name=".YAFNET_Authentication" protection="All" timeout="#####" cookieless="UseCookies"/>
and change the timeout value to a large number, such as 43200 (which is 720 hours, or 30 days)...


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
50Panhead
  • 50Panhead
  • 53% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
I'm only a Moderator at the Forum Rank. I'll have to rundown our Administrator where ever he is.

Thanks again.

50Pan

candie111
14 years ago
sometimes i closed the web browser or even my computer .but the next time i go to the forum it logs in automatically .but sometimes it can't
squirrel
14 years ago

sometimes i closed the web browser or even my computer .but the next time i go to the forum it logs in automatically .but sometimes it can't

Originally Posted by: candie111 

I found through testing that you may need to add a line in your web.config with a series of settings that defines the machine key and decryption key. When an ASP.NET application pool resets, it re-creates the machine key and decryption key settings with new ones if they are not explicitly defined in the web.config file for the application. DotNetNuke hard codes these in to the web.config to avoid this problem. You must also have this setting if your website runs on a web farm.


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend