PDA

View Full Version : Having some problems with login persisting...



Deimos
12-01-2004, 09:21 PM
Ok. WHen I log in to my CMS it refreshes to the forums, but then the forums want me to login as well. Anyone know what may be causing this?!

CMS: PHP-Nuke
IBF: 1.3

Any help would be greatly appreciated.

Patrick
12-03-2004, 04:50 PM
That is a strange problem. The script does not modify the forum's login functions, it simply inserts extra things to do (so that you get logged into the CMS).

You may want to check and make sure that your passes are matching.

Since the script modifies the forum's change password to also change the CMS password, I suggest logging into the forum. going into your profile, and changing your password. Now try to login again from the CMS using the new password.

Deimos
12-05-2004, 03:06 PM
so when you log in from the cms it will not log u in to the forums? is that correct?

Patrick
12-05-2004, 07:26 PM
No, that is incorrect.

This hack combines:
a) Member databases (actually, it synchronizes them)
B) Logins
c) Change Password feature
d) Profiles


The hack itself modifies the forum's source code to include login details (such as setting cookies) for the CMS. Thus, you saying that your logging in logs you into the CMS but not the forum does not make any sense, since essentially the forum login is exactly the same.

Once again, I strongly suggest you login to the forum with whatever your correct information is, go to the profile section, and change your pazsword. Doing this will update your password for both CMS and forum, which by my guess is currently set to different passes for the given user you are having problems with.

Deimos
12-05-2004, 11:56 PM
I tried that. didn't work. I was looking at the regex to find the cookie domain for the cms I believe. It looks for www at the front of the domain name which I think is my problem as I am working in a dev environment with a domain like a subdomain. ie sub.domain.com <-- cms sub.domain.com/forums <-- forums

Patrick
12-06-2004, 06:19 PM
It may appear that way, but no. Heh, I almost thought that you had found a bug until I saw what I was doing, which I admit looks a bit strange now that I look at it.

"^(http|https)://([^/]+)/(.*)$"

will place subdomain.com or www.subdomain.com into $dom_regs[2].

ereg_replace("^www.(.+)$", "\\1", $dom_regs[2]);

simply removes the www (not sure why I didn't do it in one expression), IF the www is there.

Running through the express:

http://www.subdomain.domain.com/bleh/blah.html

1st: www.subdomain.domain.com
2nd (final cookie domain): subdomain.domain.com

Now lets do it and see what happens with another scenario:

http://subdomain.domain.com/bleh/blah.html

1st: subdomain.domain.com
2nd (final cookie domain): subdomain.domain.com


So as you can see that is not the problem.

I just want to clarify:
1. You are being logged into the CMS but NOT into the forums?
2. When you try to login from the CMS you ARE being redirected to the forum login / login function.

If the above two are correct, then I do not understand how your forum even works in the first place if it isn't correctly setting cookies for its own login.

Deimos
12-07-2004, 09:41 AM
it is the damndest thing I have ever seen, but I don't get redirected to the forum until after the login for the cms completes it then appears to go over and wanna go to the profile or something. If you would like to take a look and see if you see anything obvious I can pm u the link. I just can't get traffic on it as it is in my home being that it is my dev box.

Patrick
12-08-2004, 09:23 PM
Feel free to PM me the site and I will look at it.

If you are accessing the site from localhost or similar then that is likely the problem, however.