Forum

MamboHacks.com => Mambo-SMF Forum 1.3.0 Support => Topic started by: Chemofunk on May 14, 2005, 08:47:58 AM



Title: Cookie Lifetime --> SMF_login_module
Post by: Chemofunk on May 14, 2005, 08:47:58 AM
Hi there,

first of all: Great work with the SMF-Integration!  :D

But I got some problems with the Sessions/Authentications with SMF-Login. This module is supposed to log on to Mambo and SMF at the same time, isn't it?

But the sessions ends always after some time (30-60min i think?), even if "Always logged on" is marked.

If I come back on my site after an hour or two, I am still logged on in Mambo, but not in SMF, so the SMF-login shows the login.

Any ideas? :)

Thanks in advance...


Title: Re: Login/Session Problems SMF-Login
Post by: Chemofunk on May 15, 2005, 09:06:07 AM
Could it be, that the "Remember me" / "Stay logged in" Checkbox doesnt submits its value to the SMF login process?

Because I am logged out after 60minutes, exactly the time the forums default setting for a cookie lifetime.

Any ideas on how to change this to make the Checkbox working for both Mambo & SMF ?


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: Trail on May 16, 2005, 09:50:43 PM
I have the same problem, also, when a user comes back after a day or 2 he is remembered by mambo, but the forum doesn't recognize the user.


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: Gandalf on May 20, 2005, 02:22:29 PM
same here!


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: Pierse on May 24, 2005, 02:09:37 AM
I've noticed the same thing... it only does it on the latest release though... the previous release does not have this problem.


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: Kenshi on May 25, 2005, 05:02:33 PM
I have the same problem. Mambo 4.52 and SMF 1.03 - all my users are logged out automatically, even though they all have Forever set.

Other than that issue I have nothing but praise for this component. Great work!  :)


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: cowboy on June 02, 2005, 10:36:48 AM
I will try to address this issue on the following releases.


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: Gandalf on June 02, 2005, 11:13:54 AM
Quote from: cowboy on June 02, 2005, 10:36:48 AM
I will try to address this issue on the following releases.
thank you cowboy, BTW check your PM please i sent you an info about the bridge developping


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: Gandalf on June 27, 2005, 09:54:40 PM
For everyone having the problem of cookie lifetime so small, please make sure your php session.save.path is in your include_dir and Writable
i've been fighting with it since my last post above and finally when i made the path writable problem solved!

Good luck


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: repute on June 29, 2005, 10:49:00 AM
Having the same problem i hope this will be fixed soon!

Great work by the way!


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: cowboy on June 29, 2005, 12:31:18 PM
It will be on the next release.  :D
thanks.


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: repute on June 29, 2005, 01:45:33 PM
Ok great! When does that come?

Tnx for your quick reply...


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: cowboy on June 29, 2005, 01:58:39 PM
Not sure yet, but I had it planned already.


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: repute on June 29, 2005, 02:22:24 PM
okidoki...


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: Gandalf on July 01, 2005, 12:20:52 AM
@cowboy, in fact mambo create a session cookie on server side in addition to the client side, when that directory is not writable (for some reason like it is not in ur include dir, or not well chmoded) you will suffer from limited connection time, crazy online members counter (i sometimes have for example 5 user, on mambo online user i can see 150 maybe more and no there isn't that number) when i changed that, i noticed that cookie won't end, and mambo online users module is a bit more close to the reality.....

i hope it will be the same to everyone else too


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: cowboy on July 01, 2005, 12:46:59 AM
Gandalf,

Thanks for this note. I will look into this finding when I start working on 1.3.2.


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: Gandalf on July 01, 2005, 12:55:57 AM
No problem......


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: zimen on September 04, 2005, 12:53:46 PM
Quote:
Gandalfwrote: For everyone having the problem of cookie lifetime so small, please make sure your php session.save.path is in your include_dir and Writable
i've been fighting with it since my last post above and finally when i made the path writable problem solved!

Good luck


Gandalf:

Can you give me a bit more clear info on that? i'm no expert and would like to solve that problem too.

Thank you

Simon


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: Gandalf on September 04, 2005, 01:07:28 PM
Well make sure that the session.save.path in your php.ini exists in your system and is writable (it is a folder)


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: zimen on September 04, 2005, 01:38:57 PM
Hi Gandalf thankd for your reply but i can't find that file/folder.

I go to the mambo install folder then inside the includes folder, but see no php.ini folder or a session.save.path file. Sorry i'm no expert but can you tell me exactly where to look and if i don't have it how to create it? thank you


Simon


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: Gandalf on September 04, 2005, 01:41:16 PM
No it is not there, the php.ini is on your system, do you own the server? and what is the server OS is linux or windows if linux which distro/version


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: pestilence on September 04, 2005, 04:38:26 PM
I posted a few days ago a topic regarding sessions, and remember me function of mambo.
There was a small mistake in the mambo.php regarding the doMamboSMF call when the user has selected the remember me of Mambo.
Also i made a slight hack inside the smf.php file so that when a mambo user session has expired the SMF session is also destroyed.


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: zimen on September 04, 2005, 05:43:30 PM
Thank you gandalf, i'll contact my system admin and tell him to check this.

In the meantime i partially soved the problem by doing the following:

1: Logged out with the original mambo login (wich was set to remember me forever).
2: Set timeout sessions the same in mambo AND forum (i set them to 60 minutes each)
3: Unpublished the mambo login, published the smf login and logged in with that.

this way mambo cannot set me logged forever and smf will kick me out from both mambo and forum in the same time. So users will have to always login again but at least they will not experience the timeout in forum and still  be logged in mambo.

by the way, i found this bug in this website too. I have to login everytime i come back here even if i select the remember me option. Is that correct Ross?


Simon


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: rpmilius on September 08, 2005, 07:00:41 PM
Quote from: zimen on September 04, 2005, 05:43:30 PM
3: Unpublished the mambo login, published the smf login and logged in with that.


where do you get the "smf login" module? I didn't see that distibuted with the mambohacks package or in the downloads section of this site.

and what setting for the registration module do you use in the configuration for Mambo-SMF configuration, or does it matter?

thanks!
bob


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: Paul Srch on September 10, 2005, 09:59:15 AM
Quote from: rpmilius on September 08, 2005, 07:00:41 PM
where do you get the "smf login" module? I didn't see that distibuted with the mambohacks package or in the downloads section of this site.

and what setting for the registration module do you use in the configuration for Mambo-SMF configuration, or does it matter?

thanks!
bob


Do you mean this - the  Mambo - SMf login module (http://www.mambohacks.com/component/option,com_remository/Itemid,40/func,fileinfo/filecatid,25/parent,category/) - what you're looking for?


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: pestilence on September 11, 2005, 07:42:30 PM
I created this hacked file for smf, it actually checks if the SMF sessions or the Mambo session has died.
If the mambo session is dead then it expires the SMF session as well.
If the mambo session is active it and the SMF session is dead (either has timeout or the rememberme option of mambo was selected) then it re-creates the SMF session based on the userid and after querying the SMF user table.


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: rpmilius on September 13, 2005, 12:58:22 PM
Quote from: pestilence on September 11, 2005, 07:42:30 PM
I created this hacked file for smf, it actually checks if the SMF sessions or the Mambo session has died.
If the mambo session is dead then it expires the SMF session as well.
If the mambo session is active it and the SMF session is dead (either has timeout or the rememberme option of mambo was selected) then it re-creates the SMF session based on the userid and after querying the SMF user table.


thanks! I'll check it out and let you know if it fixes my problem.

-bob


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: rpmilius on September 13, 2005, 12:59:56 PM
Quote from: Paul Srch on September 10, 2005, 09:59:15 AM
Do you mean this - the  Mambo - SMf login module (http://www.mambohacks.com/component/option,com_remository/Itemid,40/func,fileinfo/filecatid,25/parent,category/) - what you're looking for?


thanks! I downloaded it and will give it a try.

btw, do you know if it works okay with Community Builder?

thanks again!
bob


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: caribmon on September 13, 2005, 01:12:55 PM
Quote from: pestilence on September 11, 2005, 07:42:30 PM
I created this hacked file for smf, it actually checks if the SMF sessions or the Mambo session has died.
If the mambo session is dead then it expires the SMF session as well.
If the mambo session is active it and the SMF session is dead (either has timeout or the rememberme option of mambo was selected) then it re-creates the SMF session based on the userid and after querying the SMF user table.


Excellent so far. Thanks mate. And I have community builder and gallery2 as well. Still testing though.

Cheers/


Title: Re: Cookie Lifetime --> SMF_login_module
Post by: rpmilius on September 14, 2005, 08:28:21 AM
Quote from: pestilence on September 11, 2005, 07:42:30 PM
I created this hacked file for smf...


So far, so good! seems to have fixed the behavior I've been seeing.

thanks!
bob


Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.