(Patch for GetSimple 3.1.2)
1. Edit
admin/inc/cookie_functions.php, line 57. Just after this:
Code:
function cookie_check() {
insert this:
Code:
if (defined('GSALWAYSLOGGEDUSER')) return TRUE;
2. Edit
admin/inc/common.php, line 122 (blank line). Paste this:
Code:
if (defined('GSALWAYSLOGGEDUSER')) $_COOKIE['GS_ADMIN_USERNAME'] = GSALWAYSLOGGEDUSER;
(just before the
grab user data comment line)
These 2 changes will not affect GS's normal behaviour.
Now, to activate the 'always logged in' mode, edit your
gsconfig.php and insert this somewhere (e.g. near the end of the file, before the ?>):
Code:
# Caution! Only use for testing in local environments or with alternative security measures
define('GSALWAYSLOGGEDUSER','administrator');
Change
administrator to your preferred (existing) username.
To disable this, you can just remove that gsconfig setting or uncomment it by inserting a # before the
define...