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.

auto-login via cookie variables - I need help

edited October 2007 in Vanilla 1.0 Help
I'm integrating Vanilla into a community site, Dolphin, and want to write some kind of auto-login into Vanilla so they don't have to login twice. What is written by Dolphin: $_COOKIE['memberNick']; // this equals the Vanilla login name $_COOKIE['memberPassword']; // this equals the Vanilla password Can someone tell me where to place a check into Vanilla so if the two cookies exist, to query the Vanilla db and setup the Vanilla cookie SESSIONID if they match? Since I have username and pass in cookies, it should be pretty easy to work with if I know where to put the logic. Thanks!


  • Options
    Cant you just make vanilla use those 2 cookies? Wouldnt that be easier?
  • Options

    Cookies aren't a good place to store a username and password.

    A better solution would be to get Vanilla to read Dolphin's authentication scheme--this section on External Application Integrations covers how it's done with some other software packages.
  • Options
    edited October 2007
    I *was* talking about having Vanilla use the cookies, and actually got it to work pretty well by modding People.Class.Authenticator.php > function GetIdentity() to read the cookies, do a db query and write the $UserID if it found a match. Let me know if you want to see the hack.
This discussion has been closed.