Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Integrating People login - Creating Session
I am trying to figure out how to start a new session for a user after they have authenticated.
I've been reading through a lot of old discussions on integrating the People library with external apps, but haven't seen this covered.
I can give an example of a very basic authentication script to give an idea of what I am trying to do:
I've been reading through a lot of old discussions on integrating the People library with external apps, but haven't seen this covered.
I can give an example of a very basic authentication script to give an idea of what I am trying to do:
<?php
include("./forums/appg/settings.php");
include_once("./forums/appg/init_people.php");
$auth = new Authenticator($Context);
if ($auth->Authenticate("user", md5("password"), TRUE) == 1) {
/* Session should be started */
echo "Authenticated!";
} else {
echo "Error!";
}
?>
0
This discussion has been closed.
Comments
I did some more digging, and I believe I've found what I was looking for.
$Context->StartSession();