FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to create new users via API and log them in
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to create new users via API and log them in [message #33472 is a reply to message #33440] Sun, 03 September 2006 10:23 Go to previous messageGo to previous message
magnalox is currently offline  magnalox   Germany
Messages: 4
Registered: September 2006
Karma:
Junior Member
Thanks, found that.

Now I'm able to create a session ID by using
$ForumSessionID = external_fud_login($UserID);
but how do I send them logged-in onto the main index page?

A
header('Location: http://...forum root../index.php?t=index&S='.$ForumSessionID);
still shows them logged out.

Btw, a function like
external_fud_login_bylogin($UserLogin)
would be nice. Logins are required to be unique, so I don't needed to retrieve the UserID first.

Regards

Edit:
Meanwhile I found out that it works when cookies are
disabled, because the cookie set by external_fud_login()
is using the wrong session-id. Disabling cookies in
the browser forces FUDforum to use the (correct) sessid
passed via URL.

The forum runs in forum.mysite.com, not www.mysite.com
like my own scripts, including the handover-script.

Should I prevent external_fud_login() from setting a
cookie somehow ?
I could temporarily overwrite $COOKIE_NAME, but thats
not a terribly beautiful solution.

Hmmm....

[Updated on: Sun, 03 September 2006 16:48]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can I get only parts of the styles on this forum
Next Topic: Setting up Mailing list question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 07:26:49 GMT 2024

Total time taken to generate the page: 0.05217 seconds