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.1
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?
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.