Page 1 of 1

IIS & Serendipity

Posted: Wed Dec 26, 2007 4:08 pm
by jwronkow
looking for help installing Serendipity 1.2.1 ZIP under windows 2003 IIS server, MySQL 5.0.45. When I log in I am thrown back to user/pass page. I have checked session cookies and they are on. I use phpmyadmin w/ cookie auth and it works fine. I did see a post in regards to non https login. I currently don't have https working. I have checked cookie dir and cookies are being written to dir so I know it has the permissions, escpecially since I have put IUSR to full control. Does the installation have an issue with non-https login's? Looking for any help you can provide. --Thanks in advance

Re: IIS & Serendipity

Posted: Thu Dec 27, 2007 12:39 pm
by garvinhicking
Hi!

Which browser do you use? If you'Re using Firefox: Please install the LiveHTTP-Header extension. With that you can see what your server sends.

Then you could check to see which cookie "PHPSESSID" setting your server submits, and which your browser sends back. They should not change after login. If they do, it means either the IIS/PHP is not utoilizing PHP sessions, your browser is rejecting the cookies, or there's a domain name mismatch. Did you check if the HTTP hostname changes?

Some browsers reject cookies if they come from "192.168.xxx.xxx", so maybe you need to configure the browser to not do that?

Regards,
Garvin

sessions

Posted: Thu Dec 27, 2007 4:42 pm
by jwronkow
garvin, I am using IE 7 as for php sessions, I have been checking the error log and I am seeing these types of errors

[27-Dec-2007 09:35:30] PHP Notice: A session had already been started - ignoring session_start() in C:\virtual_webs\blogger.wronkowski.net\www\serendipity_config.inc.php on line 20
[27-Dec-2007 09:36:04] PHP Notice: A session had already been started - ignoring session_start() in C:\virtual_webs\blogger.wronkowski.net\www\serendipity_config.inc.php on line 20
[27-Dec-2007 09:44:36] PHP Notice: A session had already been started - ignoring session_start() in C:\virtual_webs\blogger.wronkowski.net\www\serendipity_config.inc.php on line 20

I believe the sessions are working properly. Is there anything I can do to check? --Thanks

Re: sessions

Posted: Thu Dec 27, 2007 5:05 pm
by garvinhicking
Hi!

Did you enable php.session_auto_start in your PHP installation? You shouldn't do that in conjunction with serendipity.

However, this error notice should not be the cause of your problems.
I believe the sessions are working properly. Is there anything I can do to check? --Thanks
I'd advise you to test with Firefox, and follow my other recommendations I mentioned earlier.

HTH,
Garvin