SimplePortal
Support => English Support => Topic started by: Dzonny on October 30, 2013, 03:16:39 PM
-
Heya there all,
So i installed SP and have standalone page currently here:
thecolorgreen.co
forum itself is located at:
forums.thecolorgreen.co
I'm having problems with login system. Currently local storage of cookies is enabled, but when i login I have "password incorect" message so I have to type login details again and then I'm logged in. Then if I go back to portal it shows that i'm logged out. Any help please?
Test account:
User: Test
Pass: test123
-
Try it with the following settings:
Enable local storage of cookies > Disabled
Use subdomain independent cookies > Enabled
-
That fixed the problem, right.
Don't have an idea why it didn't worked the first time I tried, as I tried the same settings a day before, and it didn't work.
Well, thanks for the help :)
-
Glad that it worked this time. ;)
-
Oh, looks like there's problem with logout now, when i try to logout from portal i got:
Session verification failed. Please try logging out and back in again, and then try again.
I can logout from forum though. Maybe the problem can be with the custom logout button that I have in index.template, but that works fine on forum though:
<A href="', $context['menu_buttons']['logout']['href'], '" class="logout">Log Out</A>
-
How does the href in hour custom logout button differ from the "usual" logout button?
-
It does not differ as far as I know, as that href is used in button made in Subs.php I guess.
So, I still have this problem.
Whatever I try it wont work. my forum is forums.site.com subdomain and site.com is standalone portal.
When I try to login on portal - I got password incorrect. From forum it all works fine (with the same login form).
When I try to logout on portal - i got session verification failed. From forum it all works fine (with the same logout button).
When I try to login using SA Facebook integration on portal - got error "No connection to facebook found", and from forum - it all works fine with the same fb login button.
So I guess that the problem is in SP and I have no idea where to search for fixing. I tried changing cookie name, clearing cache, changing some settings in admin panel, but nothing helped.
-
Can you try changing the button code to the following to see if it has anything to do with the injection of session variable and id to the link?
<A href="', $scripturl, '?action=logout;', $context['session_var'], '=', $context['session_id'], '" class="logout">Log Out</A>