Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Single domain, Single Login

I have a current members site that I coded. I want a sing login. Mine.
Both sites are on one domain.

I just need to create the cookie that makes a user logged in to Vanilla.
How?

Can some one point me in the right direction?
Is there class or function I can call?
I have never built a cookie based login. I uses sessions.

Thanks

Best Answer

  • I had already created my own theme.
    In the header of my theme I look for my login session
    and look for the Vanilla cookie.

    If my session is set but the vanilla cook is not I redirect to
    header("Location:http://mywebsite.com/elite/entry/jsconnect?client_id=*********&Target=/");

    That page signs the user into vanilla and redirects to the main page.

    To the user it is seemless.

    I got the link from the single sign plugin. Instead of making a user click
    it, I just redirect to it.

    leafmonster

Answers

  • I have the jsconnect working, but that is totally not what I want.
    It requires you to click a button to be signed on. That is still two signons.

  • still nothing? oh well I was able to make it work.

  • Can you share what you did?

    UnderDog
  • I had already created my own theme.
    In the header of my theme I look for my login session
    and look for the Vanilla cookie.

    If my session is set but the vanilla cook is not I redirect to
    header("Location:http://mywebsite.com/elite/entry/jsconnect?client_id=*********&Target=/");

    That page signs the user into vanilla and redirects to the main page.

    To the user it is seemless.

    I got the link from the single sign plugin. Instead of making a user click
    it, I just redirect to it.

    leafmonster
Sign In or Register to comment.