Problem with Remember me in CB login

12 years 3 weeks ago #53529 by shtula
franov wrote:

I've the same problem but with Joomla 1.0.13...I use CB to manage SMF 1.1.14 together with the site and it works just fine as far registration, login and logout are concerned...but if I try to login with "remember me" won't remember me if you let the session expire or close and open again the browser...I'm getting crazy for this you have any idea on how to fix it?
Thank you very much!

Me too.

I'm using 1.0.13 and CB 1.1 but the only difference is I'm using Fireboard, not SMF.

All the other above mentioned problems have I too.

Is it safe to apply the hack for 1.5 to 1.0.13?
12 years 3 weeks ago #53633 by rfamatid
ok, looks like 'Remember Me' is now working. . .almost.

Why does it need another click outside of the home page to recognize the user? Once i click on a link, it realizes who i am and shows me the correct content based on being logged-in vs. not logged in.
12 years 3 weeks ago #53849 by imsammyd
It isn't working at all for me. Running joomla 1.5RC4 and CB 1.1. Anyone have a solution?
11 years 11 months ago #55866 by prosto
Downloaded from this site and installed CB 1.1 on fresh installation of Joomla 1.5.

Disabled system default "Login Form" module (mod_login), enabled "CB Login" module (mod_cblogin).

When I log in with "Remember Me" checked, after 15 minutes (default session lifetime) or after browser closed/reopened I'm logged out and have to log in again.

Applied the "fix" found in this thread -
if ( $hashedPwdLogin ) { // Joomla 1.0.12 and below:
$mainframe->login( $username, cbHashPassword( $passwd2 ) );
} elseif ( checkJversion() == 1 ) { // Joomla 1.5 RC and above:
$mainframe->login( array( 'username' => $username, 'password' => $passwd2 ), array( 'remember' => cbGetParam( $_POST, 'remember' ) ) ); // THIS LINE CHANGED !
} else {
$mainframe->login( $username, $passwd2 );
- and now it's working 50%, i.e., when I'm logged out after 15 minutes or reopening the browser I have to reload the page or click on any link, and I'm logged back in for the next session period.

Tested on 2 servers - same results.

Installed Joomla 1.5 separately without any extensions - no problems at all with the system default "Login Form" module (mod_login) and "Remember Me" checked.

To developers - please provide a solution for fixing this issue!
Thanks in advance.
11 years 11 months ago #56207 by squallata
prosto i have the same problem and i found this bad thing :woohoo: it is e mod i wrote [code:1]
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

global $my , $_SERVER;

$usid = $my->id ;

@mysql_connect("your sql server", "user name", "password"«»)

or die ("baglanti hatasi"«»);

@mysql_select_db("joomla db"«»)

or die("hata"«»);
if ($usid == ""«») {
$git ='http://'.$_SERVER.$_SERVER;
header("Location: $git"«»);

and this mod is seen only registered user
if the user say remember me page reload again :evil:
i know it is bad thing but no body make good thing :D
and sory for my bad english
11 years 11 months ago #56428 by prosto
Hey, squallata,
it may work, if you are already logged in, but if you try to log in/out, there will be problems.
Moderators: beatnantkrileon
Time to create page: 0.426 seconds

Facebook Twitter LinkedIn