Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 08:32 pm EST

Geeklog Forums

Auto Remember User


Status: offline

Creator

Forum User
Full Member
Registered: 07/11/02
Posts: 181
Location:Austin, TX
With user preferences (account info link), users can tell a GeekLog install to remember them for up to 1 year.

Is it possible to have this setting automatically set to 1 year when a new member is created? The reason for this is because a lot of users don't really spare the time to go into the preferences and change them and if those users have to log in every time they'll quickly get bored of that.

So is it possible? If so, then HOW?


L. Whitworth
 Quote

Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
I set-up something to this effect on my site. I wrote a script to update the users table nightly. See query below: DB_query("UPDATE {$_TABLES['users']} SET cookietimeout=31536000"Wink; I also removed the "remember me" drop down box from usersettings.php (see edituser()). Not the best solution but, it works.---Danny @ squatty.com
In a world without walls and fences, who needs Windows and Gates?
 Quote

Anonymous

Anonymous
Couldn't you adjust the default_perm_cookie_timeout in config.php instead? $_CONF['default_perm_cookie_timeout'] = 604800; 604800 seconds = 7 days
 Quote

Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
Yep, that would work too. My hack pre-dates the session settings in config.php.---Danny @ squatty.com
In a world without walls and fences, who needs Windows and Gates?
 Quote

All times are EST. The time is now 08:32 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content