Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm setting up a dotProject installation, but my session is lost on every pageload and I get redirected to the login page. It seems the session variable "dotproject" is missing from every link. When I forge links manually (http://localhost/dotproject/index.php?m=ticketsmith&dotproject=....) the pages work fine.

Please advise.

EDIT:

I get the following warnings when enabling debug mode:

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Apache\htdocs\dotproject\index.php:24) in C:\Apache\htdocs\dotproject\includes\session.php on line 207 Warning: Cannot modify header information - headers already sent by (output started at C:\Apache\htdocs\dotproject\index.php:24) in C:\Apache\htdocs\dotproject\index.php on line 64 Warning: Cannot modify header information - headers already sent by (output started at C:\Apache\htdocs\dotproject\index.php:24) in C:\Apache\htdocs\dotproject\index.php on line 65 Warning: Cannot modify header information - headers already sent by (output started at C:\Apache\htdocs\dotproject\index.php:24) in C:\Apache\htdocs\dotproject\index.php on line 66 Warning: Cannot modify header information - headers already sent by (output started at C:\Apache\htdocs\dotproject\index.php:24) in C:\Apache\htdocs\dotproject\index.php on line 67 Warning: Cannot modify header information - headers already sent by (output started at C:\Apache\htdocs\dotproject\index.php:24) in C:\Apache\htdocs\dotproject\index.php on line 219

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If you're running Firefox, you should run HttpFox, and inspect the cookies returned by the server. The problem could be related to an invalid hostname, causing the browser to reject the session cookie.

share|improve this answer
    
Thanks for the suggestion, but I don't get back any cookies at all... –  user21692 Aug 30 '10 at 11:52
    
In index.php, could you uncomment line 24 (error_reporting(E_ALL)) and place any error messages here? I've a feelng that you get Cannot send session cookie - headers already sent. How did you upload dotProjects files, and edit these? –  Lekensteyn Aug 30 '10 at 12:21
    
Thanks again for the help... I've updated my question based on your suggestion. Regarding your question: I don't exactly understand what you mean by uploading dotProjects files (I unzipped them on a server locally). –  user21692 Aug 30 '10 at 12:53
    
Did you strip any comments? Because line 24 in index.php contains the line error_reporting(E_ALL); (latest version from Sourceforge). If you don't mind, could you run phpinfo();, and upload the result somewhere? –  Lekensteyn Aug 30 '10 at 13:52
    
Here you go: akosch.rewq.org/info.htm –  user21692 Aug 30 '10 at 15:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.