Home arrow Forum
Cookie Lifetime --> SMF_login_module
  Welcome, Guest. Please login or register.
December 02, 2008, 08:30:22 AM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: Cookie Lifetime --> SMF_login_module « previous next »
Pages: 1 [2] Go Down Print
Author Topic: Cookie Lifetime --> SMF_login_module  (Read 33064 times)
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Cookie Lifetime --> SMF_login_module
« Reply #15 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.
Logged
Gandalf
Jr. Member
**

Karma: +0/-0
Offline Offline

Posts: 80



View Profile WWW
Re: Cookie Lifetime --> SMF_login_module
« Reply #16 on: July 01, 2005, 12:55:57 AM »

No problem......
Logged
zimen
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: Cookie Lifetime --> SMF_login_module
« Reply #17 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
Logged
Gandalf
Jr. Member
**

Karma: +0/-0
Offline Offline

Posts: 80



View Profile WWW
Re: Cookie Lifetime --> SMF_login_module
« Reply #18 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)
Logged
zimen
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: Cookie Lifetime --> SMF_login_module
« Reply #19 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
Logged
Gandalf
Jr. Member
**

Karma: +0/-0
Offline Offline

Posts: 80



View Profile WWW
Re: Cookie Lifetime --> SMF_login_module
« Reply #20 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
Logged
pestilence
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 14


View Profile
Re: Cookie Lifetime --> SMF_login_module
« Reply #21 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.
Logged
zimen
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: Cookie Lifetime --> SMF_login_module
« Reply #22 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
« Last Edit: September 04, 2005, 05:46:02 PM by zimen » Logged
rpmilius
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 23


View Profile
Re: Cookie Lifetime --> SMF_login_module
« Reply #23 on: September 08, 2005, 07:00:41 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
Logged
Paul Srch
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile WWW
Re: Cookie Lifetime --> SMF_login_module
« Reply #24 on: September 10, 2005, 09:59:15 AM »

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 - what you're looking for?
« Last Edit: September 12, 2005, 04:49:51 PM by Paul Srch » Logged
pestilence
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 14


View Profile
Re: Cookie Lifetime --> SMF_login_module
« Reply #25 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.

* smf.zip (1.79 KB - downloaded 9 times.)
Logged
rpmilius
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 23


View Profile
Re: Cookie Lifetime --> SMF_login_module
« Reply #26 on: September 13, 2005, 12:58:22 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
Logged
rpmilius
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 23


View Profile
Re: Cookie Lifetime --> SMF_login_module
« Reply #27 on: September 13, 2005, 12:59:56 PM »

Do you mean this - the  Mambo - SMf login module - 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
Logged
caribmon
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: Cookie Lifetime --> SMF_login_module
« Reply #28 on: September 13, 2005, 01:12:55 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/
Logged
rpmilius
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 23


View Profile
Re: Cookie Lifetime --> SMF_login_module
« Reply #29 on: September 14, 2005, 08:28:21 AM »

I created this hacked file for smf...

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

thanks!
bob
Logged
Pages: 1 [2] Go Up Print 
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: Cookie Lifetime --> SMF_login_module « 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