Foren / Cotonti / Support / 0.0.3 New Install Login Problem

12NächsteLetzte

CorpQuid
#1 24. Februar 2009, 10:14
After installing the new version 0.0.3 and registering the first account we are unable to login to the admin.

When we login and brings us to the home page and then when we click admin panel is says
"Your not allowed to do this Redirecting" and then logs us out.

Are we missing somthing? We did have version 0.0.2 and had no issues with the registering and login.
Kilandor
#2 24. Februar 2009, 10:41
I haven't tried a fresh 0.0.3 install yet myself.

Check the account make sure it is an admin, also when you login did you check "remember me"?
CorpQuid
#3 24. Februar 2009, 10:46
Kilandor,

Well glad I could test it first..:-)

What user group is admin in the database? it is set at 5 now.

Yes I did check remember me.

Just as a test I also dropped the tables in the DB and then loaded version 0.0.2 sql file and still no luck.

It actually looks like its logging in but when you look at users online it does not even say that I'm logged in, it says I'm still a visitor.

Edit
After you mentioned "also when you login did you check "remember me"?" I went back again and re-installed the system again and then did not check remember me and now it allowed me to login as long as I do not check remember me, if I check remember me it fails.

Dieser Beitrag wurde von CorpQuid (am 24. Februar 2009, 11:22, vor 15 Jahre) bearbeitet
Kilandor
#4 24. Februar 2009, 11:50
Well you have to refresh again after you login to see yourself online. Thats due to the way whoisonline works.

Oh I know, there can be a problem with cookies and domain. Set the cookie domain to, ".illusionsgaming.com" exactly like that (no quotes)

Ok Yea the problem is when you "Remember Me" It uses cookies, and it needs the domain set right.
Trustmaster
#5 24. Februar 2009, 20:21
Obviously cookie domain problem. Are you testing on localhost? Is your $cfg['mainurl'] set properly? You need to log in without "Remember me" and set a correct cookie domain. There is also a problem with localhost (and probably some other names too) in FireFox, which we haven't traced.
May the Source be with you!
CorpQuid
#6 25. Februar 2009, 00:43
Kilandor & Trustmaster,

Thank you both for your assistance.

Yes the site is on a remote server but I do have the main url set to the full domain with no trailing slash.

I did set the cookie domain and path as well as the server ip and all the rest of the settings as I normally would in Sedito, I have never had this problem before (I had installed 0.0.1 and 0.0.2 as well as several Sedito installs)

The problem is when you click the remember me check box ONLY, and within all the browsers I tested with
IE7
FF3
Chrome
Safari

I have also tried several skins now too

I had cleared out all my browser history, deleted all the cookies, restarted the computer (Vista 64 bit Ultimate)

Any other ideas??

Thanks
Trustmaster
#7 25. Februar 2009, 00:48
Could you send me your cookie domain/path/TTL via PM?
May the Source be with you!
Ross
#8 28. Februar 2009, 06:47
I get the same problem - how can we fix it?
CorpQuid
#9 28. Februar 2009, 11:01
Trustmaster I sent you the PM the other day, did you receive it?

I guess it looks like I'm not the only one now.
Trustmaster
#10 28. Februar 2009, 14:09
Yes, I have received your PM. But I had no idea what might cause it. However, we need to gather statistics to sort it out.

What is important:
  • PHP version and if Sessions are enabled
  • Cotonti versions tested
  • Your OS
  • Browsers and versions tested
  • Cookie domain and cookie path

So far, here is the details on registered problem occurrences:

I had this problem a while ago:
  • PHP 5.2.6
  • Cotonti 0.0.2
  • Ubuntu 8.10
  • Firefox 3.0.5, other browsers worked fine
  • Cookie path set to /sedition. I noticed that if I set domain to localhost, it didn't work. But if I blanked the domain, it worked.
However, I tested it all the way round on 0.0.3 and trunk and the problem is gone for me now (Ubuntu 8.10, FF 3.0.6, tested localhost and various subfolders).
May the Source be with you!
Brock
#11 1. März 2009, 00:24
  • PHP 5.2.8
  • Cotonti 0.0.2
  • Windows Vista
  • Firefox 3.0.6
  • Blank Path, Blank Domain (Have tried other combinations. None worked.)

Edit: Just upgraded to 0.0.3, and I'm getting the same problem.
Web Design Database - www.wddb.com

Dieser Beitrag wurde von Brock (am 1. März 2009, 00:43, vor 15 Jahre) bearbeitet
CorpQuid
#12 3. März 2009, 04:47
PHP 5.2.6 Sessions enabled YES
Cotonti 0.0.3
Vista Ultimate
Firefox 3.0.6, IE7, Has Problem
Cookie path set to /
Domain for cookies set to .illusionsgaming.com
Cookie life time set at default 5184000
Server IP setting is set to the accounts IP address which is a shared IP
Internal cache is enabled

Again this only happens when checking the "REMEMBER ME" button, if you leave it unchecked it logs in fine with no problem and everything works perfect.

I have played around with this settings above and have had no luck in getting it to work with the remember me button checked.

I hope this all helps, let me know if you need anything else.
Kilandor
#13 3. März 2009, 06:48
Have you tried the domain to illusionsgaming.com with no . before it, That is how its set here.

The only other thing I noticed isn't here, which could be maybe a factor for some reason. What is the server running, Nix, or Win ? and maybe any specifics you have on it.

And just for the sake of trying it, have you tried turning IPCheck off?
CorpQuid
#14 3. März 2009, 07:44
Yes I tried with and without the period before the domain.

It is a Nix server

Server Specs
Centos 5 Enterprise
Apache 2.2
PHP 5.2.6
MySql 5

Yes I tried IP Check on and Off

Whats strange is that we have another domain running Sed 121 and have no problems with remember me and also we had Cotonti version 0.0.2 installed before with no problems and only starting have this once we installed 0.0.3.

It is not a big issue for me now, it was only an issue when I first installed and could not login to the admin with the fresh install however I wanted to document this and provide you with as much info as I could.
Trustmaster
#15 3. März 2009, 18:51
I know the technical reason: setcookie() function does not set a cookie. But I don't know what causes it to behave so bad. I've noticed it depends on domain, so if you leave the domain blank, most probably it will start working, but your cookies will intersect with other Cotonti sites which have domain blank (which is bad both for security and comfort).
May the Source be with you!

12NächsteLetzte