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.
L. Whitworth
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
13
11
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"
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?
In a world without walls and fences, who needs Windows and Gates?
9
12
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
13
9
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