Welcome Guest! To enable all features please
Login or Register.
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?
The default expiration is 30 minutes, you can change it in your web.config like this:
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.
When I post fp:mddubs
in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )
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.
var date = new Date();
var expires = "; expires="+date.toGMTString();
document.cookie = name+"="+value+expires+"; path=/";
- 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.