Welcome Guest Search | Active Topics | Log In | Register

Cookie Expiration Options · View
lajyh
#1 Posted : Tuesday, November 04, 2008 5:51:23 PM

Rank: YAF Forumling


Joined: 11/4/2008
Posts: 1
Location: WI
Good morning,

I was wondering if someone could tell me the proper way to change my web forum so that the cookie will not expire for the users logging in. I've had a lot of complaints about having to log on each time. I've tried to tamper with the coding and set the expiration to 10000000, but that didn't seem to work. I'm at a loss. Is there a way to do it in admin mode via the GUI?

Thanks,
Brian
mddubs
#2 Posted : Tuesday, November 04, 2008 6:18:53 PM

Rank: YAF Developer



Joined: 8/7/2008
Posts: 164
Location: Chicagoland
The default expiration is 30 minutes, you can change it in your web.config like this:

<system.web>
<authentication mode="Forms">
<forms timeout="40320"/>
</authentication>
</system.web>

40320 is 4 weeks in minutes. Just search Google for "4 weeks to minutes" or whatever.

If the authentication cookie is still expiring then my guess is it's a client issue. They may have some browser settings or tools that are deleting cookies periodically, or not keeping them at all.
ddscart
#3 Posted : Tuesday, November 04, 2008 9:25:18 PM
Rank: Member



Joined: 10/2/2008
Posts: 17
Location: Georgia
See both below, they are all you need.

http://forum.yetanotherf...ay-logged-in--help.aspx

http://www.orcsweb.com/a...es/aspnetmachinekey.aspx
www.ddscart.orgddscart@ddscart.org
Disabled Dachshund Society of Georgia


stevedinaz
#4 Posted : Friday, December 19, 2008 12:04:47 AM

Rank: YAF Forumling


Joined: 12/18/2008
Posts: 5
Thanks to you both for the reply, So I need to edit the web.config file. I'm not sure how to do that, but I'll figure it out. Thanks for the links.

stevedinaz.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.086 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET