YAFLogo

Posted by: 50Panhead - Thursday, 9 December 2010 17:12:39
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

Posted by: doxa123 - Friday, 10 December 2010 01:20:52
it will be great.

Posted by: squirrel - Friday, 10 December 2010 01:41:20
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.

Posted by: Jaben - Friday, 10 December 2010 04:30:08
Login remember is a function of Forms Authentication and ASP.NET. You just need to modify your web.config file: [code] [/code] The important thing is the timeout="" -- that's the timeout of their login cookie in minutes.

Posted by: squirrel - Friday, 10 December 2010 13:24:42
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 --

Posted by: 50Panhead - Sunday, 12 December 2010 15:10:55
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

Posted by: squirrel - Sunday, 12 December 2010 16:34:36
[quote=50Panhead;45494]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[/quote] All you have to do is edit the web.config file in your forum's root folder, look for the line below: [code] [/code] and change the timeout value to a large number, such as 43200 (which is 720 hours, or 30 days)...

Posted by: 50Panhead - Monday, 13 December 2010 15:05:51
I'm only a Moderator at the Forum Rank. I'll have to rundown our Administrator where ever he is. Thanks again. 50Pan

Posted by: candie111 - Wednesday, 22 December 2010 06:56:44
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

Posted by: squirrel - Wednesday, 22 December 2010 12:31:59
[quote=candie111;45687]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[/quote] 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.