Topic: Login problems :(

hello, sorry for my english, please help!

PunBB 1.2.14

some of old and new users become to get a problems with login to forum - after input the user name and password, on redirecting page it wass massege that login done and all is ok, but after redirecting to main page, this users detecting by forum as GUESTS!!!

change the pass and try to ;ogin with new pass do not help!!!

cookies in users browsers is always on. but this trouble time after time come to few of users

where is are problem??? sad

Re: Login problems :(

If you try logging in as one of those users do you encounter the same issue?

Re: Login problems :(

Is your forum in a frame?

Re: Login problems :(

Smartys... hmm
excellent idea, now I'm try to do that...

elbekko
no, no frames...

tnx, peoples!!!

5 (edited by fmimoso 2007-01-04 22:39)

Re: Login problems :(

I'm having this same problem with my punbb installation. But I found the problem. smile

My site accepts http://www.mysite.com and http://mysite.com.
If your last logout was on http://www.mysite.com you can't login in http://mysite.com.
You should try to login with either one or the other.

Try it yourself:
1 - login using http://www.mysite.com
2 - logout
3 - login using http://mysite.com
4 - you get the login successful message, but after that you get index.php as guest

smile

Re: Login problems :(

fmimoso wrote:

I'm having this same problem with my punbb installation. But I found the problem. smile

My site accepts http://www.mysite.com and http://mysite.com.
If your last logout was on http://www.mysite.com you can't login in http://mysite.com.
You should try to login with either one or the other.

Try it yourself:
1 - login using http://www.mysite.com
2 - logout
3 - login using http://mysite.com
4 - you get the login successful message, but after that you get index.php as guest

smile

The fix for that is to open up config.php and set $cookie_domain to .mysite.com smile
One cookie will then work for both domains

7 (edited by fmimoso 2007-01-04 22:46)

Re: Login problems :(

Thanks. wink
You're damn fast... smile

Just tried it. It works (I'm guessing you're not surprised). big_smile

8 (edited by PunUser 2007-04-24 09:59)

Re: Login problems :(

Sorry to kick this topic, but I face a similar problem as described by fmimoso.

I have a website where http://forum.mysite.com is identical to http://www.mysite.com/forum which I could resolve using the $cookie_domain = .mysite.com setting. The problem however is: I have two forums on the domain with different logins. In this situation the aforementioned setting doesn't work anymore. I have 'solved' it by setting the $cookie_domain to forum1.mysite.com and forum2.mysite.com, but this means you can only login when you're using the exact URL. Any ideas?

Forum 1: http://forum1.mysite.info is same as: http://www.mysite.info/forum1
Forum 2: http://forum2.mysite.info is same as: http://www.mysite.info/forum2

Edit: Renamed real links to virtual ones

Re: Login problems :(

Set unique cookie names wink

Re: Login problems :(

Sorry for the late response. Thank you for your tip, seems logical smile

Re: Login problems :(

Another option is to set up a redirect so that you can only log in from one domain.