This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

xenForo Forum Integration - login problems.


avatar
DoctorWatsOn 42
From: -
I’ve got allsorts of general weirdness going on with logging in, which is confusing me totally:

(all on Windows Vista - CT 2_1_7 & xF 1_RC2)

FIREFOX –

If I try to login on CT, it doesn’t log me into CT, but it does log me into xF.

If I login on XF, it also doesn’t log me in with CT.


CHROME & IE8:

If I login to CT, it does work & logs me in to both CT & xF, as it should.

However, when I log-out in CT, it doesn’t log me out of xF – the CT page shows me as logged out, but if I refresh it I am logged in again.

If I login using xF it does log me into both xF & CT and if I log out in xF, it does log me out of both xF & CT as it should.

Confused Face

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: xenForo Forum Integration - login problems.
avatar
Administrator
1340
From: Vienna, Austria
No, this included in version 2.1.8 which is coming in the next few days.
1 Re: xenForo Forum Integration - login problems.
avatar
40
From: -
Is this change in the current download?
1 Re: xenForo Forum Integration - login problems.
avatar
Administrator
1340
From: Vienna, Austria
Found the problem. Open /classes/class_uwrapper_xf1.php and add after:

setcookie( $preferences[ 'website_uwrapper_cookieprefix' ] . "ct_theme", 0, 0, $preferences[ 'website_uwrapper_cookiepath' ], $preferences[ 'website_uwrapper_cookiedomain' ] );


the following code:
setcookie( $preferences[ 'website_uwrapper_cookieprefix' ] . "xf_user", 0, mktime()-31536000, $preferences[ 'website_uwrapper_cookiepath' ], $preferences[ 'website_uwrapper_cookiedomain' ] );


This should fix the logout problem
1 Re: xenForo Forum Integration - login problems.
avatar
Administrator
1340
From: Vienna, Austria
If I login using xF it does log me into both xF & CT and if I log out in xF, it does log me out of both xF & CT as it should.

I can reproduce the logout issue (logout only in Contentteller but not XenForo) on my local installation. I will investigate this tomorrow in the office.

However, I can login with Firefox. Have you tried to clean the cookies in Firefox?
1 Re: xenForo Forum Integration - login problems.
avatar
Administrator
1340
From: Vienna, Austria
I see you installed Contentteller in /sussex and XenForo in /sussexforums. I will try to reproduce this on my local installation.
1 Re: xenForo Forum Integration - login problems.
avatar
OP 42
From: -
What did you set as Cookie path/domain under Manage Forum Integration?


I didn't, because it says 'optional' for both, and not having a clue what I am doing I left them.  http://www.contentteller.com/forums/styles/default/xenforo/smilies/redface.png

There is a '/' under Cookie path, but the Cookie domain is left blank.
1 Re: xenForo Forum Integration - login problems.
avatar
Administrator
1340
From: Vienna, Austria
What did you set as Cookie path/domain under Manage Forum Integration?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.