SMF Session Structure

Started by themortalgod, May 03, 2007, 02:46:05 PM

Previous topic - Next topic

themortalgod

so ya the subject says it all, what I am doing is building software to integrate SMF with a Web 2.0 user content system and I want to be able to check to see if they have logged in from anywhere and/or log them in from anywhere, I already know the password hash scheme that SMF uses but does anyone know what session variables it uses to determine if a user is signed in or not as i A) wanna be able to create a session that SMF will recognize as "logged in" from anywhere on the site and B) be able to have the site detect if the user is logged in from anywhere on the site. And since SMF already has a great user system built id rather use that one since its already there (oh and that way users wont have to login separately for the forums)

thx in advance for any help

KGIII

Is this something you can handle doing with the SSI.php functions?

Go to your forum, remove the index.php from the URL, and change it to ssi_examples.php and you will see.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

themortalgod

ya thx had to rewrite half the ssi functions (and create a few of my own :D) but it looks like they will do the trick, thx

Wal-Mart Security

Rewriting the SSI functions is never a good idea, it makes upgrading difficult.  Instead, you should use ssi_functionname('array') and it outputs all that information in an array, where you can use it however you want.  I found that out the hard way, I did the same thing you did and later I ended up needing to use the same function in two different areas of the site and they needed to display differently.  It takes a little bit to figure out, but array is always the best way to go :)
Achilleus Technologies
Ace Gaming Syndicate
PART TIME SMF CHARTER MEMBER 4LIFE

SMF slays phpbb, puts it in an IPB coffin, and buries them both with the ashes of vBulletin.

KGIII

This can take a few days to really learn - there are bits I still haven't a clue about.

http://www.simplemachines.org/community/index.php?topic=14906.0

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

Advertisement: