50Panhead
  •  50Panhead
  • 53% (Neutral)
  • YAF Forumling Topic Starter
2010-12-09T16:12:39Z
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
doxa
2010-12-10T00:20:52Z
squirrel
2010-12-10T00:41:20Z
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
2010-12-10T03:30:08Z
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
2010-12-10T12:24:42Z
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
2010-12-12T14:10:55Z
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
2010-12-12T15:34:36Z
Originally Posted by: 50Panhead 

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



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
2010-12-13T14:05:51Z
I'm only a Moderator at the Forum Rank. I'll have to rundown our Administrator where ever he is.

Thanks again.
50Pan
candie111
2010-12-22T05:56:44Z
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
2010-12-22T11:31:59Z
Originally Posted by: candie111 

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



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 
Users browsing this topic

    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

    Project Twitter Updates

    Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved