Home arrow Forum
Mambo-SMF Forum Login Module Problem
  Welcome, Guest. Please login or register.
December 02, 2008, 07:27:41 PM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: Mambo-SMF Forum Login Module Problem « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Mambo-SMF Forum Login Module Problem  (Read 15755 times)
Sylvain Amyot
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile WWW
Mambo-SMF Forum Login Module Problem
« on: June 15, 2005, 02:19:32 PM »

Hi,

Mambo's Login Session Lifetime is set to 1800, so after 30 mins it kills the session. My problem is that the login box does show you as logged out but the User Menu is still visible. I am using the Mambo-SMF Forum Login Module v.1.3.1a

I am also using 404SEF which could be what is causing the problem but I wanted to check here to see if this is a known problem.

server platform: linux
mambo version: 4.5.2.2
smf version: 1.0.4
php version: 4.3.10
webserver: apache


Thank you in advanced

Sylvain
« Last Edit: June 15, 2005, 02:31:30 PM by Sylvain Amyot » Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Mambo-SMF Forum Login Module Problem
« Reply #1 on: June 17, 2005, 06:02:02 PM »

this is not really a major issue, but we will address this on the next major release.
Logged
Sylvain Amyot
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile WWW
Re: Mambo-SMF Forum Login Module Problem
« Reply #2 on: June 22, 2005, 03:20:57 PM »

Ok, Thanks!  Smiley

So I assume that this is a known issue with the Mambo-SMF Forum Login Module v.1.3.1a and not a problem with 404SEF, it this correct?

Looking forward to the next release....
Logged
Sylvain Amyot
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile WWW
Re: Mambo-SMF Forum Login Module Problem
« Reply #3 on: July 12, 2005, 11:26:12 AM »

Any idea when the next release with this fix will be available?

Is there a temporary hack I could apply to fix this?

This is driving me nuts!
Logged
Sylvain Amyot
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile WWW
Re: Mambo-SMF Forum Login Module Problem
« Reply #4 on: August 29, 2005, 02:50:53 PM »

anybody?!??
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Mambo-SMF Forum Login Module Problem
« Reply #5 on: August 30, 2005, 12:09:06 PM »

I guess no one working on a hack. Ill try to work on this when I'm done with the other priorities.
Logged
Sylvain Amyot
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile WWW
Re: Mambo-SMF Forum Login Module Problem
« Reply #6 on: August 30, 2005, 12:16:33 PM »

That's great! Thank You cowboy
Logged
pestilence
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 14


View Profile
Re: Mambo-SMF Forum Login Module Problem
« Reply #7 on: August 30, 2005, 03:43:20 PM »

Ok i am not sure if this is gonna work (i will test it today) but i think this should do the trick:
inside mambo.php
Hack function: purge
Code:
function purge( $inc=1800 ) {
   $past = time() - $inc;
   //SMF Hack
   $query = "DELETE FROM smf_sessions"
   . "\nWHERE (last_update < $past)";
   $this->_db->setQuery($query);
   $this->_db->query();
   //End SMF Hack
   $query = "DELETE FROM $this->_tbl"
   . "\nWHERE (time < $past)";
   $this->_db->setQuery($query);
   return $this->_db->query();
}
Logged
Sylvain Amyot
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile WWW
Re: Mambo-SMF Forum Login Module Problem
« Reply #8 on: August 31, 2005, 10:10:16 AM »

Hi,

Thank you for your hack.

Unfortunately the User Menu still appears even though I was logged out after my session expired.
Logged
pestilence
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 14


View Profile
Re: Mambo-SMF Forum Login Module Problem
« Reply #9 on: August 31, 2005, 06:09:51 PM »

Check my latest post, i think i found a solution up to now it seems its working ok...
Logged
Sylvain Amyot
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile WWW
Re: Mambo-SMF Forum Login Module Problem
« Reply #10 on: August 31, 2005, 06:59:32 PM »

Hi Pestilence,

I tried your hack but the User Menu is still displayed once my session expires
Logged
pestilence
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 14


View Profile
Re: Mambo-SMF Forum Login Module Problem
« Reply #11 on: September 01, 2005, 05:05:33 AM »

Hi Pestilence,

I tried your hack but the User Menu is still displayed once my session expires

Hmm wierd, mine works ok now, my actuall problem was that when mambo session expired the SMF session continued to exist, with the smf.php hack the user is correctly deleted once the mambo session expires and the SMF session is killed.
Logged
pestilence
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 14


View Profile
Re: Mambo-SMF Forum Login Module Problem
« Reply #12 on: September 01, 2005, 05:25:09 AM »

Hi,

Mambo's Login Session Lifetime is set to 1800, so after 30 mins it kills the session. My problem is that the login box does show you as logged out but the User Menu is still visible. I am using the Mambo-SMF Forum Login Module v.1.3.1a

I am also using 404SEF which could be what is causing the problem but I wanted to check here to see if this is a known problem.

server platform: linux
mambo version: 4.5.2.2
smf version: 1.0.4
php version: 4.3.10
webserver: apache


Thank you in advanced

Sylvain

I forgot to ask...when you say user menu, which user menu do you mean? the SMF default forum menu? or something else?
Logged
Sylvain Amyot
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile WWW
Re: Mambo-SMF Forum Login Module Problem
« Reply #13 on: September 01, 2005, 09:47:08 AM »

I'm talking about the Mambo User Menu that is displayed once you log in.

Is it possible that this is a Mambo bug and has nothing to do with the SMF bridge?
Logged
pestilence
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 14


View Profile
Re: Mambo-SMF Forum Login Module Problem
« Reply #14 on: September 01, 2005, 01:19:14 PM »

I'm talking about the Mambo User Menu that is displayed once you log in.

Is it possible that this is a Mambo bug and has nothing to do with the SMF bridge?

Are you using a custom mambo template? or one that came with the mambo installation?
If you are using a custom template then there is a big chance that the loadmodule function is not called correctly.
Check your template index.php file and see if there is something wrong, compare it to a default installed template and see what is wrong.
Logged
Pages: [1] 2 Go Up Print 
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: Mambo-SMF Forum Login Module Problem « previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved.
TERMS OF USE