Page 1 of 1

A session had already been started

Posted: Wed Sep 08, 2010 10:49 am
by teejayuu
Script URL: http://supportdesk.relate.org.uk/chl
Version of script: 2.2
Hosting company: Local
URL of phpinfo.php: http://supportdesk.relate.org.uk/chl/phpinfo.php
URL of session_test.php: http://supportdesk.relate.org.uk/chl/session_test.php
What terms did you try when SEARCHING for a solution:
session has expired, please login using the form below.
Write your message below:

Like other I am getting the 'Error: Your session has expired, please login using the form below.' message. The software was installed using IE8 on a Windows 2008 Server having II7 as a webserver.

I have cleared out IE's cache but still get the same message. Have accessing it from a different machine, but get the same message. Changing browser does work as I get the same message using Firefox.

Accessing session_test.php gives
Notice: A session had already been started - ignoring session_start() in C:\inetpub\wwwroot\chl\session_test.php on line 4
Session started successfully!
CLICK HERE FOR PAGE 2
IISRESET doesn't change anything either.

Any ideas as to what this may be?

Re: A session had already been started

Posted: Wed Sep 08, 2010 4:56 pm
by Klemen
The links you posted don't work, but I assume it's a session autostart problem. In other words - your server automatically starts sessions for PHP scripts.

Check inside your php.ini file, make sure session.auto-start is set to 0 (if not set it to 0 and restart the server).
http://www.php.net/manual/en/session.co ... auto-start

Re: A session had already been started

Posted: Thu Sep 09, 2010 6:37 am
by teejayuu
Thanks Klemen - worked a treat.