Page 1 of 1

Site installs fine, but admin login doesnt work.

Posted: Wed Feb 21, 2007 8:19 pm
by duplay
I have installed a CMS site to my Windows 2003 server and the site come up just fine, howevr when i go to login with admin login and pw, hit enter, the page comes back to the admin login. Any thoughts?

Re: Site installs fine, but admin login doesnt work.

Posted: Wed Feb 21, 2007 8:40 pm
by kermit
is your browser accepting cookies?

Re: Site installs fine, but admin login doesnt work.

Posted: Wed Feb 21, 2007 9:35 pm
by duplay
browser is accepting cookies but do i need to turn cookies on in my php.ini? if so, any idea where? thanks

Re: Site installs fine, but admin login doesnt work.

Posted: Thu Feb 22, 2007 12:53 am
by Dee
duplay wrote: browser is accepting cookies but do i need to turn cookies on in my php.ini? if so, any idea where? thanks
PHP sessions must be setup correctly for cookies/logins to work. Session support is enabled in PHP by default.
Check phpinfo() it should have a section like this:
session
Session Support enabled
Registered save handlers files user
Also, when your browser accepted a cookie from the server under "Variables" _SERVER["HTTP_COOKIE"] will be set.

Look here for more info.

Regards,
D

Re: Site installs fine, but admin login doesnt work.

Posted: Thu Feb 22, 2007 4:18 pm
by duplay
This is what i don't understand, everything tells me the php sessions are correct (except I get a yellow ball when I go to install under Checking if sessions are enabled

Although the PHP support for sessions is not mandatory, it is highly recommended. Logins and other things may slow down and you may have difficulty with some addon functionality without this capability. Caution



I attached a copy of my phpinfo()

[gelöscht durch Administrator]

Re: Site installs fine, but admin login doesnt work.

Posted: Thu Feb 22, 2007 4:30 pm
by Pierre M.
I don't know much of PHP installing, but looking at your ini file, if I were you, I would switch ON some parameters :
.autostart On
.cookie_domain duplaysite.net
.cookie_httponly On
.cookie_lifetime 4000
.cookie_path /sessions
.use_cookies On
.use_only_cookies On

and your /sessions folders (at the root of your webserver) should be writeable.

Pierre M.