digitalpoint
Well-known member
Having this hard coded to 7 days is a but obnoxious. I changed the behavior to 180 days in my setup, but it seems like something that should just be a setting.
Upvote
6
It can... I already did it. Just seems like it should be a core thing.I'll see if this can be made into an add-on with configurable days.
Shawn,Having this hard coded to 7 days is a but obnoxious. I changed the behavior to 180 days in my setup, but it seems like something that should just be a setting.
It's in XenForo_Model_User::setUserRememberCookie()Shawn,
Where in the code we can change this cookie duration?
Thanks
ChangedIt's in XenForo_Model_User::setUserRememberCookie()
XenForo_Helper_Cookie::setCookie('user', $value, 7 * 86400, true);
XenForo_Helper_Cookie::setCookie('user', $value, 180 * 86400, true);
Even i don't think we'll see any xenforo upgrades in 2012, you shouldn't edit the xenforo core filesChangedtoCode:XenForo_Helper_Cookie::setCookie('user', $value, 7 * 86400, true);
Thanks ShawnCode:XenForo_Helper_Cookie::setCookie('user', $value, 180 * 86400, true);
of course. Bring it on!!!Even i don't think we'll see any xenforo upgrades in 2012, you shouldn't edit the xenforo core files
interested in an addon?
Much appreciated, ragtek.
We use essential cookies to make this site work, and optional cookies to enhance your experience.