Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1270
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Standalone portal and login problems

Started by Dzonny, October 30, 2013, 03:16:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dzonny

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

[SiNaN]

Try it with the following settings:

Enable local storage of cookies > Disabled
Use subdomain independent cookies > Enabled
And slowly, you come to realize... It's all as it should be...

Dzonny

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 :)

[SiNaN]

And slowly, you come to realize... It's all as it should be...

Dzonny

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>

AngelinaBelle

How does the href in hour custom logout button differ from the "usual" logout button?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Dzonny

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.

[SiNaN]

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>
And slowly, you come to realize... It's all as it should be...