UPDATE: I just installed the latest versions of SMF, Mambo, and the Bridge. So, I did get everything up to date. With that said, I am able to login and out of my site fine now...HOWEVER, it only logs me into the SMF part of the site and not the mambo part. Why is it not logging me into the Mambo site?
You can try to log into the site with:
username: 123456
password: 123456
Access the site at http://www.webquad.com/forza
______________________________________
I have discovered some serious login problems at my site...please look into this, as I'm sure many of you have the same problem.
Mambo + SMF login problems
Mambo: 4.5.1
SMF: 1.0.7
Problem:
1) When using Mozilla, the user is not shown logged in when the "www." is not in the URL. When the "www." is in the URL, the user is shown logged in.
2) When using Internet explorer, the user is logged into SMF but not into MAmbo. Therefore, the user cannot use Mambo components and mambos that require authorization. This is a BIG problem.
Both of these problems are serious. I have tried EVERYTHING to fix it, from editing the SMF cookies settings, upgrading SMF, upgrading the login module, etc and now that everything is up-to-date, it still is causing me problems.
Any help with this would be GREATLY appreciated! Thanks! :D
Ryan
Lainaa1) When using Mozilla, the user is not shown logged in when the "www." is not in the URL. When the "www." is in the URL, the user is shown logged in.
2) When using Internet explorer, the user is logged into SMF but not into MAmbo. Therefore, the user cannot use Mambo components and mambos that require authorization. This is a BIG problem.
This is actually not bridge-related at all. Mambo cookies rely very heavily on the URL being EXACTLY the same in the browser as the value of $mosConfig_live_site. The solution is to access your site only at the URL with the www in it, or to change the value of $mosConfig_live_site to where you actually want to access the site.
SMF cookies can be used for different subdomains, but you must check the option for subdomain independent cookies in your SMF admin panel.
Also, for security reasons, I would suggest you upgrade to at least Mambo 4.5.3h.
Thank you for your fast reply.
LainaaSMF cookies can be used for different subdomains, but you must check the option for subdomain independent cookies in your SMF admin panel.
I have checked this option, but it won't let me logout AT ALL and when I'm logged out, it won't let me log in! This is driving me nuts.
I have configured my live site with the following url:
$mosConfig_live_site = 'http://www.webquad.com/forza';But, as you'll notice, if you go to my site at http://www.webquad.com/forza it automatically resets the URL without the "www." so that it appears http://webquad.com/forza Why is it doing this? This is very frustrating! :(
LainaaBut, as you'll notice, if you go to my site at http://www.webquad.com/forza it automatically resets the URL without the "www." so that it appears http://webquad.com/forza Why is it doing this? This is very frustrating!
Perhaps in your site control panel, or in the .htaccess file?
If worst comes to worst, you can always change the URL for the live site to http://webquad.com/forza, but I'm not sure that the redirect is not going to mess up your SMF cookies as well. Apache redirects in the web root usually cause cookie trouble.
What version of the bridge did you install?
Okay, here's what I did:
I just installed the latest versions of SMF, Mambo, and the Bridge. So, I did get everything up to date.
With that said, I am able to login and out of my site fine now...HOWEVER, it only logs me into the SMF part of the site and no the mambo part.
Why is it not logging me into the Mambo site?
You can try to log into the site with:
username: 123456
password: 123456
Access the site at http://www.webquad.com/forza
You have SMF 1.0.7.
What version of the bridge did you install? (Hint: "Latest" is not a version)
Here's the bridge version I have installed:
MOS_SMF_BRIDGE v3.19a_stable
Sorry for not mentioning that earlier. And, I have Mambo 4.5.3h installed. :)
Thanks again for your help and, I hope we can resolve this problem for anyone else who is experiencing it as well. ;)
Thank you.
In MOS_SMF.php, we need to end the old Mambo session. Because the name of the session cookie changed in Mambo 4.5.3, we need to change the code a bit:
Find (for login and logout functions...):
setcookie ("sessioncookie","",-3600, "/" );
Replace with:
$sessionCookieName = md5( 'site'.$GLOBALS['mosConfig_live_site'] );
setcookie ($sessionCookieName,"",-3600, "/" );
Thank you for your help.
Logging into the site now logs me into Mambo AND SMF. So that's good news.
But when I log out, it logs me out of SMF but still keeps me logged into the mambo part of my site.
Again, thank you for your help! But the only problem is that it needs to log me out of both SMF and Mambo. for some reason, logging in works fine now, but logging out only logs me out of SMF and not Mambo.
Okay, I forgot to change the logout part...so I can now login and logout of my site fine in Mozilla browser.
However, in the Internet Explorer Browser 6.0.28 it still does not log me into Mambo for some reason. Why is this? That means, for users in Internet Explorer, they will not be able to use the Mambo parts of my site. So, there is still a bug in the SMF-Mambo bridge. What could it be?
Thanks again for your help.
LainaaHowever, in the Internet Explorer Browser 6.0.28 it still does not log me into Mambo for some reason. Why is this? That means, for users in Internet Explorer, they will not be able to use the Mambo parts of my site. So, there is still a bug in the SMF-Mambo bridge. What could it be?
I already gave you that answer.....
LainaaThis is actually not bridge-related at all. Mambo cookies rely very heavily on the URL being EXACTLY the same in the browser as the value of $mosConfig_live_site. The solution is to access your site only at the URL with the www in it, or to change the value of $mosConfig_live_site to where you actually want to access the site.
You will have cookie trouble with Mambo as long as that redirect exists.
You've been a great help Orstio! I really appreciate it.
I changed the $mosConfig_live_site variable to http://webquad.com/forza and now it works for some reason. I don't know why that would make it work, but it does. I've also heard from people that leaving the "www." out of the URL can lead to even more problems, that's why I didn't want to have to change it.
Now I can login and logout of my site with or without the "www." in the URL.
Also, what's even stranger, is that when $mosConfig_live_site was set to http://www.webquad.com/forza and I accessed my site by typing in www.webquad.com/forza into the web browser, it always redirected me back to webquad.com/forza Why would it do that?
I would like to leave the www. in front of my URL, but for some reason I'm being forced to run my site without it. Strange....
Could the redirection problem rely in the template file here?
<?php
global $sc, $context;
if (!defined('SMF')){
require ("administrator/components/com_smf/config.smf.php");
require ($smf_path."/SSI.php");
}
$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
mysql_select_db($mosConfig_db);
?>
LainaaCould the redirection problem rely in the template file here?
No, your redirect is either from the .htaccess file, or something in your site's control panel.
Okay, I've already changed the path in the configuration to webquad.com/forza
However, here is my .htaccess file:
##
# @version $Id: htaccess.txt,v 1.1 2005/07/22 01:51:57 eddieajau Exp $
# @package Mambo
# @copyright (C) 2000 - 2005 Miro International Pty Ltd
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Mambo is Free Software
##
#
# mod_rewrite in use
#
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourMamboDirectory (just / for root)
# RewriteBase /YourMamboDirectory
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
Is there anything in there that could be causing the problem?
Also, shouldn't Mambo work with or without the www. in front of the URL? I've used phpbb and had no problem with that...why does Mambo have such a big problem with this?....