01-16-2019, 12:40 PM
(This post was last modified: 01-16-2019, 12:41 PM by luigi7890.)
Hello. I'm sorry, my English is not very good. I'm planning to build a site for my friends and community based on OSClass (classified listing software), Elgg (social media platform) and Moodle (teaching platform).
I'm interested in making a homepage in which you can login (userspice) only once, so you don't have to login on every other service. Please what is the documentation where I can learn how to manage that? I mean, how to modify the mentioned software.
Best regards.
Your english is great.
So obviously it matters what the other platforms require to login, but there is a script in usersc/scripts/custom_login_script.php that does things automatically when your person logs in (I just made a better script file that I can point you to after we do the next update, but this will work).
So whatever you do in that script will happen when the user logs in, so that is your starting point.
The question I have for you is are all these other applications on the same server?
Ok. So that helps. Now the tricky part is being logged into them all at once.
Basically the idea of being logged in usually has to do with a $_SESSION variable. You'll notice that if you go in the php of any userspice page and you var_dump($_SESSION); you will see a few variables. The main one that matters us $_SESSION['user'] = your user id.
You'll have to login to those other applications and var_dump $_SESSIOn to see what variables they set and see if you can get them to be set when singing into userspice.
That may not be the only way, but it's the first thing I would try.