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

Logout issue


avatar
error 232
From: -
Logout issue

My test site is connected with forum database. When I try to logout on site I can't. No matter what I do. I need to logout in forum first then in CT. Same for login. First login in forum then in CT.

Notice

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

Responses to this topic


1 Re: Logout issue
avatar
OP 232
From: -
It works now. Thanks.
1 Re: Logout issue
avatar
Editor
0
From: -
I think I found the problem. Please try it again with the updated class_uwrapper_ipb2.php in the attached zip file.
   class_uwrapper_ipb2.zip
1 Re: Logout issue
avatar
OP 232
From: -
It doesn't help. Still can't logout
1 Re: Logout issue
avatar
Editor
0
From: -
Sounds like a cookie path issue. Open class_uwrapper_ipb2.php in an editor and replace:

                        setcookie( $preferences[ 'website_uwrapper_cookieprefix' ] . "member_id", $userid );

setcookie( $preferences[ 'website_uwrapper_cookieprefix' ] . "pass_hash", $pass_hash );
setcookie( $preferences[ 'website_uwrapper_cookieprefix' ] . "ct_theme", $theme );


with:
                  setcookie( $preferences[ 'website_uwrapper_cookieprefix' ] . "userid", $userid, mktime()+31536000, "/" );

setcookie( $preferences[ 'website_uwrapper_cookieprefix' ] . "password", md5( $password . $preferences[ 'website_uwrapper_customer' ] ), mktime()+31536000, "/" );
setcookie( $preferences[ 'website_uwrapper_cookieprefix' ] . "ct_theme", $theme, mktime()+31536000, "/" );


and:
                 setcookie( $preferences[ 'website_uwrapper_cookieprefix' ] . "userid", 0 );

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


with:
              setcookie( $preferences[ 'website_uwrapper_cookieprefix' ] . "userid", 0, 0, "/" );

setcookie( $preferences[ 'website_uwrapper_cookieprefix' ] . "password", 0, 0, "/" );
setcookie( $preferences[ 'website_uwrapper_cookieprefix' ] . "ct_theme", 0, 0, "/" );


Does this help?

Notice

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