Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [mcoyne] autologin with existing cookies

Quote Reply
Re: [mcoyne] autologin with existing cookies In reply to
The best way to do this would be to add a plugin that hooks (via a post-hook) into auth_valid_session. Basically, it would look for the username and password cookie, and if found try to validate and set a cookie (Hint: most of the code you need to set the cookie properly is in GForum/Authenticate, sub auth_valid_session).

That way, when someone logs in, if they have cookies enabled, they will get a new GForum cookie - but it will happen automatically behind the scenes.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread autologin with existing cookies mcoyne 3229 May 9, 2002, 12:50 PM
Thread Re: [mcoyne] autologin with existing cookies
Jagerman 3148 May 14, 2002, 6:43 PM
Thread Re: [Jagerman] autologin with existing cookies
mcoyne 3149 May 16, 2002, 8:53 AM
Thread Re: [mcoyne] autologin with existing cookies
Jagerman 3139 May 16, 2002, 11:21 AM
Thread Re: [Jagerman] autologin with existing cookies
mcoyne 3131 May 16, 2002, 11:53 AM
Thread Re: [mcoyne] autologin with existing cookies
Jagerman 3147 May 16, 2002, 11:53 AM
Post Re: [Jagerman] autologin with existing cookies
mcoyne 3116 May 16, 2002, 12:12 PM
Post Re: [Jagerman] autologin with existing cookies
mcoyne 3111 May 21, 2002, 11:14 AM
Post Re: [mcoyne] autologin with existing cookies
hennagaijin 3022 Sep 13, 2002, 5:32 AM
Post Re: [mcoyne] autologin with existing cookies
hennagaijin 3103 Sep 13, 2002, 5:40 AM