PDA

View Full Version : admin login repost itself


stenp
10-10-2007, 02:02 PM
Windows Server 2003, IIS 6, MySql 5.0.45, PHP 5.2.4. Installation OK but when I try to login (last step of installation /admin/install.php) the page only reposts itself and present the empty login page again.

What could be the problem ?

Dkozikowski
10-10-2007, 02:06 PM
Sounds like it could be a sessions problem. Do you have a proper sessions save path?

stenp
10-10-2007, 03:01 PM
Yes it is set to C:\PHP\Sessions and the IIS user is authorised to write and read this path. In php.ini it is set: session.save_path = "C:\PHP\Sessions". The path is full with session files.

Dennis
10-10-2007, 05:36 PM
Try clicking the "remember me" option and see if this resolves it.

stenp
10-10-2007, 06:25 PM
Amazing, problem solved. Thanks Dennis.

But why ???

Dennis
10-11-2007, 05:18 AM
Every once in a while at some servers the login fails to work. We cannot comprehend why, but we think it is a server issue.

Somehow it always gets fixed by using the "Remember me" option, probably because it sets a new cookie.

stenp
10-11-2007, 05:41 AM
I didn't notice yesterday but in the bottom and centered on login page a text is diplayed after reposting the page, but only in firefox and not displayed when using IE.

"Error in my_thread_global_end(): 1 threads didn't exit"

Can this maybe give a clue to the solution?

Dkozikowski
10-11-2007, 11:41 AM
I did some research about the error and it seems its a problem with PHP.

http://forums.mysql.com/read.php?10,153077,155121#msg-155121

http://forums.mysql.com/read.php?10,153077,161696#msg-161696

http://forums.mysql.com/read.php?10,153077,174820#msg-174820

Unfortunately, if that is the problem, and you are not the host of the machine, getting your host to apply the fix may prove to be a difficult task. Best of luck to you though.

GeoS
10-11-2007, 11:55 AM
Problem with login without setting option of Remember me probably is related to the cookies/sessions.
I suspect IIS to be unable to support session cookie/URL rewrite with SID and that is why it doesnt work. Remember me option sets cookies thanks to which you dont need to use session and that is why it works fine.

stenp
10-11-2007, 11:58 AM
Thank you dwilkinsjr for all the researching. Luckily I am hosting the machine myself :)

I'll look through all the links you provided and see if I can apply the fix.

Thanks again for all help!

Dkozikowski
10-11-2007, 12:37 PM
Thank you dwilkinsjr for all the researching. Luckily I am hosting the machine myself :)

I'll look through all the links you provided and see if I can apply the fix.

Thanks again for all help!

Perfect. Please let me know if the fix works for you.

Also, what Geos is stating is true. Just for kicks, your sessions path listed on the General Info page says C:\PHP\Sessions ??

stenp
10-11-2007, 01:08 PM
Oh yes. Cut and paste from the General Info page: Session save path C:\PHP\Sessions

Dkozikowski
10-11-2007, 01:29 PM
Hmm. alright. Well try that fix and we'll see how things go from there.

GeoS
10-11-2007, 03:23 PM
Fast test with session is to check if this dir (c:\php\sessions\) contains any session data files? If not then it means sessions doesnt work.

jimdugan
11-17-2007, 05:25 PM
It's not just you, dude.
I've installed 1.6 (new install on a server I don't have control of).

I can't login at all EXCEPT if I click on the Remember me button.

Then all works fine. This is a minor nuisance, of course.

I had a similar problem with another program (SlideShowPro Director) and I had to add one line of php that said something like:

session_save_path("home/mydir/cgi-bin/tmp");

Maybe we need to manually tell the server where to save the sessions?

PHP info gives me this about sessions:

session
Session Support enabled
Registered save handlers files user

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /var/php_sessions /var/php_sessions
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid On On