Problem with Remember me in CB login

16 years 2 months ago #53529 by shtula
Replied by shtula on topic Re:Problem with Remember me in CB login
franov wrote:

Hi!
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" checked...it won't remember me if you let the session expire or close and open again the browser...I'm getting crazy for this issue...do 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?

Please Log in to join the conversation.

16 years 2 months ago #53633 by rfamatid
Replied by rfamatid on topic Re:Problem with Remember me in CB login
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.

Please Log in to join the conversation.

16 years 2 months ago #53849 by imsammyd
Replied by imsammyd on topic Re:Problem with Remember me in CB login
It isn't working at all for me. Running joomla 1.5RC4 and CB 1.1. Anyone have a solution?

Please Log in to join the conversation.

16 years 1 month ago #55866 by prosto
Replied by prosto on topic Re:Problem with Remember me in CB login
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 -
[code:1]
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 );
}
[/code:1]
- 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.

Please Log in to join the conversation.

16 years 1 month ago #56207 by squallata
Replied by squallata on topic Re:Problem with Remember me in CB login
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"«»);
exit;
}

[/code:1]
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

Please Log in to join the conversation.

16 years 1 month ago #56428 by prosto
Replied by prosto on topic Re:Problem with Remember me in CB login
Hey, squallata,
it may work, if you are already logged in, but if you try to log in/out, there will be problems.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.355 seconds

Facebook Twitter LinkedIn