Home arrow Forum
Login problem - not yet discussed
  Welcome, Guest. Please login or register.
December 02, 2008, 07:19:52 AM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: Login problem - not yet discussed « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Login problem - not yet discussed  (Read 27670 times)
Wolfgang Bornath
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 30


View Profile
Login problem - not yet discussed
« on: May 20, 2005, 07:59:56 PM »

Here's a login problem which seems to be different from the already known and/or discussed probs:

Using Mambo 4.5.2, SMF 1.0.3 and MamboSMF 1.3.1

My smf runs inside Mambo and users are known in both parts (aka synched).

Problem:

1. A user logs in in the Mambo sidebar login. He gets an error message "Please fill in username and password correctly!" although he did so and he is logged in after klicking away this message.

2. User logs in in the Mambo login, goes to the integrated smf and has to login again.

3. User logs in in the integrated smf (top menu bar in smf) and is logged in both in Mambo and smf. After a while he gets logged out of Mambo (user menu vanishes) but he is still logged in in smf.

Unforunately problem 1&2 does only occur with some users And I myself don't have these problems.

The problems - if they occur - they show with all browsers in Linux (firefox, opera, galeon, konqueror, ...) and with IE6 in Windows as well.

Looks like a cookie problem, but the problem stays even if the user erases all cookies and re-starts his browser.

URL is http://mandrivauser.de

wobo
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Login problem - not yet discussed
« Reply #1 on: June 19, 2005, 01:34:00 AM »

This should be fixed in 1.3.2.2 (not guaranteed for all servers and configs). Let me know if this still an issue.
Logged
Wolfgang Bornath
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 30


View Profile
Re: Login problem - not yet discussed
« Reply #2 on: June 20, 2005, 03:08:43 AM »

Are you sure about the version number? Smiley

All I can see is the 1.3.1.x in the announcement and download areas.

wobo
Logged
Danee
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: Login problem - not yet discussed
« Reply #3 on: June 20, 2005, 05:26:34 AM »

Hi,

Problem 1 and 3 are also shown on my website.

I haven't really figured out when it apears, but to me it also appears it has to do with session lengths (or Cookie expire times)

For problem 3 I removed the 'logon forever' checkbox cause the Mambo-SMF logon module does not logon mambo as login forever though it does for SMF.

Another problem (which I think is closely related) I have is that when I logon to SMF (or mambo for that matter) when it's wrapped in mambo and open up another browser, the mambo will be logged on, but smf won't (it doesn't read/find the cookie).
When I open SMF unwrapped it IS logged on
(I want to add that the forum folder is NOT in the root, our website is still underconstruction and runs in /mambo and the forum is a subfolder off that, so /mambo/forum. I see that the cookie is written to /forum, so I hope that this is solved when I move the site to the root)

Cheers,

Danee

The site uses:
Mambo 4.5.2
SMF 1.0.3
Mambo-SMF 1.3.1.2

URL: http://m8d.org/mambo
Logged
Azrul
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: Login problem - not yet discussed
« Reply #4 on: June 21, 2005, 10:51:28 AM »

I had the exact same problem, and here is why:

When i first set up mambo i use address x.x.com (which is associated with Admin). Then, i went on and install smf, also using x.x.com (associated with a differnt username).

So, in short, if you already have an acount in both mambo and forum, sharing the same email with diffrent address, the login will get screwed.
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Login problem - not yet discussed
« Reply #5 on: June 21, 2005, 11:16:44 AM »

Therefore, use the same username/email as admin in setting up mambo and smf. Just modify the values in smf member table manually.
« Last Edit: June 21, 2005, 11:22:39 AM by cowboy » Logged
wax
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
Re: Login problem - not yet discussed
« Reply #6 on: June 21, 2005, 01:26:31 PM »

When SMF wrapped - can`t login from forum`s own login page.

Quote
1. A user logs in in the Mambo sidebar login. He gets an error message "Please fill in username and password correctly!" although he did so and he is logged in after klicking away this message.

3. User logs in in the integrated smf (top menu bar in smf) and is logged in both in Mambo and smf. After a while he gets logged out of Mambo (user menu vanishes) but he is still logged in in smf.
All the same.

Mambo 4.5.2.2
SMF 1.0.4
Mambo-SMF 1.3.1.2
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Login problem - not yet discussed
« Reply #7 on: June 21, 2005, 01:42:11 PM »

In #3, the session expired in mambo. This is not really a major issue. This will be fixed in future release.

In #1, what login module are you using? Did you try the optional login module?
Logged
keymaster
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 25


View Profile
Re: Login problem - not yet discussed
« Reply #8 on: June 26, 2005, 05:58:41 AM »

Hi Cowboy,

I'm afraid I have to add my hat to the ring of those being stopped cold by this very same bug, and I am using all the latest updates from you.

Unfortunately for me, this is a showstopper. I cannot use the component as is. I'll try and provide as much detail, as concisely as possible to help you understand and reproduce the problem. I'm sure in the end it is somthing simple. The quality of your component is otherwise very good.

Configs:
=========
- Mambo 4.5.2.3
- Mambo-SMF Forum 1.3.1.3
- SMFMamboMod_1.3.1b
- SMF 1.0.5
- index.php was downloaded from your forum from here: http://www.mambohacks.com/component/option,com_smf/Itemid,77/expv,0/topic,164.msg1375#msg1375
(could this be the problem?)

- Login modules: problem occurs with all the login modules, CB, Mambo, Even your special mod_mambo_smf_login_1.3.1a

PROBLEM:
========
- Without SMF installed login/logout to/from Mambo works fine.
- Install SMF per instructions.
- Login to mambo, enter uid and password as normal.
- Receive popup window Javascript: Please complete the user name and password fields."
- You are given a choice: OK or CANCEL.
- if you choose OK, you get another window "The page you are trying to view contains POSTDATA that has expired from cache...to resend the data click OK or CANCEL to exit..." If you choose cancel, you get an empty browser window and it says "Done" at bottom. If you choose OK, the process of prompting for entry of the uid/password followed by the POSTDATA warning repeats again and again. Never stops.
- If you choose CANCEL to the "please complete uid/password" window (the first window), you hang. If you close the browser window and reopen a new one, you find you are logged in to mambo, but not SMF. Logging out of mambo brings you to the SMF window (wrapped).

- Now here's a REALLY weird part. This inability to login occurs most of the time, but not always. Sometimes you can login fine. The way to bring back the problem is to logout, then close your browser window. When you try and login again to mambo in the new browser window, the problem is back. This has always been reproducable for me.

Different login modules (mambo, CB, SMF optional login module) all have a variation of this problem, although they each behave a little differently.

Although this may be a pretty simple problem to fix, it is pretty serious because it prevents login.

I am happy to help you, give you a uid/password, etc., if you like. Just send me your email address (I assume you have mine).

Thanks.

BTW - you have one of the best supported forums in all of mambo. Keep up the good work.
« Last Edit: June 26, 2005, 07:10:55 AM by keymaster » Logged
Michael
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
Re: Login problem - not yet discussed
« Reply #9 on: June 26, 2005, 07:54:24 AM »

I too have problem #1 - but it's a bit weird:

I can log in with no problems from my own computer, and from one at work. Others can also log in from my computer and from my work computer, again with no problem. It works with both firefox and internet explorer.

But when the others try and log in from their computer, they get the "Please complete username and password fields". If they try a second time, they are logged in and all works fine until they close all open browser windows. They get the error with either firefox (1.0.4) or internet explorer (version 6).

All I can think of is that my work computer has a static IP address, as does my home computer (well, the home one is on the same intranet). Actually come to think of it, I'm pretty sure my mate's laptop worked when on my internal network too but now that he's back on a dynamic IP the problem is back.

The problem is the same for both the mod_mambo_smf login module and for the standard mambo login module.

I'm using mambo 4.5.2.3; smf 1.0.5; mambo smf forum 1.3.1.2

I had a browse through the login code but couldn't see any reason why the IP address of the client should make any difference. Anyone got any ideas on this one?
« Last Edit: June 26, 2005, 07:56:32 AM by Michael » Logged
keymaster
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 25


View Profile
Re: Login problem - not yet discussed
« Reply #10 on: June 27, 2005, 08:16:23 AM »

Ok, I know this sounds silly, but...

The problem seems to goes away when you change (in mamboroot/configuration.php):

$mosConfig_live_site = 'http://mysite.com';

to:

$mosConfig_live_site = 'http://www.mysite.com'; (added the 'www.')

I retried this several times. I reset the live_site and the problem comes back. I added the 'www.' and the problem goes away. 

I came across this by chance while debugging another application.

... have no idea why this happens(am almost embarrassed to post it)... perhaps Cowboy can shed some light?

Not sure if this solves the problem or just makes it happen less often. Anyways, so far there seems to be something here.
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Login problem - not yet discussed
« Reply #11 on: June 27, 2005, 11:53:08 AM »

Ok, this seems to be a cookie issue and you found the solution. Good job!

Time to sticky this.
Logged
Wolfgang Bornath
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 30


View Profile
Re: Login problem - not yet discussed
« Reply #12 on: June 27, 2005, 08:00:02 PM »

Yes, looks like the problem is solved - at least the problems which made me start this thread. One of my guinea-pig users had the login probs all the time from start and he got so used to need several login attempts that he sent a mail, asking what's wrong because he could login at first try. Smiley

Thanks a lot keymaster!

wobo
Logged
-Wolverine
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10


View Profile
Re: Login problem - not yet discussed
« Reply #13 on: June 28, 2005, 05:06:34 PM »

I thought about starting a new thread for this, but I will try here first.  I installed the latest optional login module (1.3.1a) and have been trying to use it.  However, the logout will not log me out of the forums, it just logs me out of mambo.  Here are the steps

1) Login using the optional login module
2) After successful login, select logout from the optional login module

This displays and error and the pathway changes to home -> upload media
Error states: "You are not authorized to view this resource.  You need to login."  If I look at the optional login module I see that I am still logged into smf but not mambo. 

I went through and deleted all cookies from my site and cleared the cache.  I also verified that my live_site has the www. as suggested previously.  Nothing has worked to resolve this issue.

Things to note:
1) I have the user menu enabled with the mambo logout unpublished.  The reason is so I can have the upload media feature of the zoom media gallery available to registered users.
2) Upload media is the first item on the user menu.  It is not a coincidence that the pathway changes to home -> upload media when I select logout from the optional login module
3) If I select logout from the forum itself I am correctly logged out of both mambo and smf without an issue.
Logged
kdizzle
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 7


View Profile
Re: Login problem - not yet discussed
« Reply #14 on: July 21, 2005, 11:36:34 AM »

I thought about starting a new thread for this, but I will try here first.  I installed the latest optional login module (1.3.1a) and have been trying to use it.  However, the logout will not log me out of the forums, it just logs me out of mambo.  Here are the steps

1) Login using the optional login module
2) After successful login, select logout from the optional login module

This displays and error and the pathway changes to home -> upload media
Error states: "You are not authorized to view this resource.  You need to login."  If I look at the optional login module I see that I am still logged into smf but not mambo. 

I went through and deleted all cookies from my site and cleared the cache.  I also verified that my live_site has the www. as suggested previously.  Nothing has worked to resolve this issue.

Things to note:
1) I have the user menu enabled with the mambo logout unpublished.  The reason is so I can have the upload media feature of the zoom media gallery available to registered users.
2) Upload media is the first item on the user menu.  It is not a coincidence that the pathway changes to home -> upload media when I select logout from the optional login module
3) If I select logout from the forum itself I am correctly logged out of both mambo and smf without an issue.

I have almost exactly the same problem.  Has this beedn fixed in another thread .....I'll keep looking.
Logged
Pages: [1] 2 Go Up Print 
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: Login problem - not yet discussed « 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