SimplePortal

Support => English Support => Topic started by: Dzonny on October 30, 2013, 03:16:39 PM

Title: Standalone portal and login problems
Post 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
Title: Re: Standalone portal and login problems
Post by: [SiNaN] on October 30, 2013, 05:59:47 PM
Try it with the following settings:

Enable local storage of cookies > Disabled
Use subdomain independent cookies > Enabled
Title: Re: Standalone portal and login problems
Post by: Dzonny on November 01, 2013, 08:51:47 AM
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 :)
Title: Re: Standalone portal and login problems
Post by: [SiNaN] on November 01, 2013, 05:05:13 PM
Glad that it worked this time. ;)
Title: Re: Standalone portal and login problems
Post by: Dzonny on November 02, 2013, 01:20:01 PM
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:
Code: [Select]
<A href="', $context['menu_buttons']['logout']['href'], '" class="logout">Log Out</A>
Title: Re: Standalone portal and login problems
Post by: AngelinaBelle on November 12, 2013, 12:37:01 PM
How does the href in hour custom logout button differ from the "usual" logout button?
Title: Re: Standalone portal and login problems
Post by: Dzonny on December 03, 2013, 08:43:09 AM
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.
Title: Re: Standalone portal and login problems
Post by: [SiNaN] on December 07, 2013, 02:59:37 PM
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?

Code: [Select]
<A href="', $scripturl, '?action=logout;', $context['session_var'], '=', $context['session_id'], '" class="logout">Log Out</A>
SimplePortal 2.3.8 © 2008-2024, SimplePortal