News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

shared login between forum and website (on different server users)

Started by lucavettu, November 18, 2010, 06:44:18 PM

Previous topic - Next topic

lucavettu

Hello guys.
I have the website in the www folder of the "website" user, and the forum in the ww folder of the "forum" user. On a page of my website I want to check if the user is logged or not in the forum, so it shows or not something.

I can include the SSI.php script in that page, I can use functions like ssi_recentPosts(); with no problem at all... but for example if I use ssi_welcome(); it shows me "Welcome, Guest. Please login or register. Did you miss your activation email?", and indeed $context['user']['is_guest'] value is 1. But I am logged in the server forum!

I've read:
1) topic 1 and
2) topic 2

but it doesn't help me at all. Any idea?

EDIT: stupid error


Kindred

is "subdomain independent cookies" checked ON in your SMF server settings?

what is the url of the forum?
what is the url of your other script?

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

lucavettu

Quote from: Kindred on November 22, 2010, 03:24:18 PM
is "subdomain independent cookies" checked ON in your SMF server settings?

that made the trick!
Thanks a lot :)

Advertisement: