Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>
Re:Problem with Remember me in CB login
Date: 2008/08/20 21:14 By: John37309 Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 3
graphgraph
p999 wrote:
I’m having a problem with CB login. It’s not remembering the user details. I have to type user name and password every time.

It works, provided I keep the same browser open, but if I close the browser, and start afresh, the login info is lost.

This occurs on both my live site, and on the test site I run on my PC (localhost)

I’ve done a search on these forums – previous posts indicates this is not a CB problem. However, I can make things work, by disabling CB login, and publishing the standard Joomla login. That points to a problem within CB login.

Any help is appreciated.

Joomla 1.5.0 RC1
Community Builder 1.1.0

My problem is exactly the same as yours p999.

I also searched this forum and i tried accessing my site with the WWW and without the WWW in my website domain and it makes no difference. Once the browser is closed, i have to login again.

On my website, i also have a forum on mysite.com/forum and the forum cookie remembers me fine. So its a CB thing alright.

I normally use IE browser, but i have tried with firefox, opera and Safari with no success.

John.

Post edited by: John37309, at: 2008/08/20 21:15

Post edited by: John37309, at: 2008/08/20 21:16
Click here to see the profile of this user The administrator has disabled public write access.

Re:Problem with Remember me in CB login
Date: 2008/08/20 21:33 By: Swiftek Status: User  
Karma: 3  
Fresh Joomlapolitan

Posts: 22
graphgraph
Welcome to our nightmare, John.

CB says it's an issue with the Joomla 1.5 Legacy Plugin.

Joomla says it's a CB issue.

Some say that the new CB that costs $30 per year fixes this problem, but I'm not so sure.

There is a lot of debate here about ditching CB for some other community system due to the bizarre lack of support for non-paying users.

Meanwhile, we wait...
Click here to see the profile of this user The administrator has disabled public write access.

Re:Problem with Remember me in CB login
Date: 2008/08/27 00:14 By: p9939068 Status: CB Doc subscriber  
Karma: 120  
Platinum Joomlapolitan

Posts: 728
graphgraph
Swiftek wrote:
Some say that the new CB that costs $30 per year fixes this problem, but I'm not so sure.

There is a lot of debate here about ditching CB for some other community system due to the bizarre lack of support for non-paying users.


What rubbish. CB is free, there is no "$30 per year" version. If you're referring to 1.2, it will be out - free for you - once it's a stable release. I'd be surprise if you can find any other community extension that provides this level of support.

As for the login problem, you may try "hide checked" for the Remember-me checkbox setting. Also (and this is important), make sure you access your site with EXACTLY the same URL as you have in your Joomla's live site setting. eg, if your live site setting is www.domain.com, don't access your site with domain.com (while logging in, surfing, and/or logging out). Don't bother "trying" with both www or non-www, it's pointless. You either access it with your live site, or you're doing it wrong, period.

Extending from the previous point, search engines like google specifically penalize websites with double extry points (ie, if both www.domain.com and domain.com can access your website, and you have other websites linking to your site with the 2 different domain formats, then you're in SEF trouble). ALWAYS use your htaccess file to do a 301 redirect from non-www to www (or vice versa depending, again, on your Joomla live site setting.

Post edited by: p9939068, at: 2008/08/27 00:19
-----
Mike's Projects
http://mike.simbunch.com

SIMGallery
ParaInvite
AJAX CB Connections
AJAX Sandbox
Profile AdSense
Profile URL
Click here to see the profile of this user The administrator has disabled public write access.

Re:Problem with Remember me in CB login
Date: 2008/08/27 14:40 By: Swiftek Status: User  
Karma: 3  
Fresh Joomlapolitan

Posts: 22
graphgraph
As for the login problem, you may try "hide checked" for the Remember-me checkbox setting. Also (and this is important), make sure you access your site with EXACTLY the same URL as you have in your Joomla's live site setting. eg, if your live site setting is www.domain.com, don't access your site with domain.com (while logging in, surfing, and/or logging out). Don't bother "trying" with both www or non-www, it's pointless. You either access it with your live site, or you're doing it wrong, period.

Tried that.

Checked that.

Not using SEF, still.
Click here to see the profile of this user The administrator has disabled public write access.

Re:Problem with Remember me in CB login
Date: 2008/08/27 15:40 By: Feendish Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 2
graphgraph
Did you try my solution (see post below) Swiftek?
Click here to see the profile of this user The administrator has disabled public write access.

Re:Problem with Remember me in CB login
Date: 2008/08/27 16:17 By: Swiftek Status: User  
Karma: 3  
Fresh Joomlapolitan

Posts: 22
graphgraph
Feendish wrote:
I think I've solved the problem (on my site anyway). To recap the problem: If the user chose "Remember Me" and logged in then closed their browser and came back at a later time, the user would appear to be logged out. BUT if they refreshed the page they magically are logged in again.

The solution:
1. Make sure mod_cblogin is installed correctly.
2. Make sure mod_login (the one supplied with Joomla is disabled).
3. Insert the following code at the top of your templates index.php file or AFTER the global declarations in the mod_cblogin.php file.

Code:

 <?php  $user =& JFactory::getUser(); //Grab the Joomla 1.5.x user details object if ((!$my->id)&&($user->id)){ //If the legacy array is not populated but user is still logged in according to Joomla 1.5.x, foreach ($user as $key => $value) {  //loop through  1.5.x user object $my->$key=$value;                     //and copy 1.5.x object value to same key in 1.0.x object. } } ?>



The issue seems to be that the $my object is not being populated until the page is refreshed. What the code above does is checks that (a) the user is stilled logged in according to the newer 1.5.x $user object and (b) the legacy 1.0.x $my object is empty. It then copies the $user values into the $my values as both objects contain the same keys. Hope this works. I'm sure someone will suggest a cleaner fix.


I was waiting for an "official" or "cleaner" fix from the CB folks here, but I guess they have all their eggs in the 1.2 basket.

As soon as GoDaddy fixes their FTP server, I'll give this a try and report back here. Thanks!
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login