returnto & auto-login [message #27980] |
Tue, 04 October 2005 07:51 |
urbanhorizon
Messages: 8 Registered: August 2005
Karma: 0
|
Junior Member |
|
|
I've got a webpage which has two buttons. One needs to log you into the FUDforum and display the main page. The other needs to log you into the FUDforum and then display a particular forum.
I've got the login working fine by just having the buttons submit a form to the FUD login page, however I thought you could send returnto as a form field to tell it where to go after the login, but it doesn't seem to work.
any suggestions?
OR, i just thought of an alternative. How does the FUDforum determine if a user is logged in? If it's based on some session variables, then I can set these myself to do the auto-login, and then just direct to the correct page.
Thanks,
Mark
[Updated on: Tue, 04 October 2005 08:20] Report message to a moderator
|
|
|
Re: returnto & auto-login [message #27984 is a reply to message #27980] |
Tue, 04 October 2005 13:04 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The forum determines the user status via the user_id field stored inside the sessions record. The returnto field is stored in the database based on previous request, so if you want to change it update the returnto field in the relavent session record.
FUDforum Core Developer
|
|
|
|
Re: returnto & auto-login [message #28008 is a reply to message #28001] |
Wed, 05 October 2005 13:44 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If the user does not have a session I'm afraid you'll need to modify login.php.t to have some pre-determined default built-in other then the front page of the forum.
FUDforum Core Developer
|
|
|
|
Re: returnto & auto-login [message #28031 is a reply to message #28023] |
Fri, 07 October 2005 16:00 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
time_sec is only used if the session is a URL session. The main thing you need is the sys_id field, which the ses_make_sysid() function generates.
FUDforum Core Developer
|
|
|