Re: Sessions don't work
| From: | Juergen Geuter | Date: | Fri, 11 Apr 2003 22:09:15 +0000 |
| Subject: | Re: Sessions don't work | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-10592@lists.php.net to get a copy of this message | ||
... 11.04.2003 22:36 ...
... Jim Thome made me react on:...
To set a session, the HTTP headers must be sent FIRST, to set the cookie. The error you are seeing is a direct result of some kind of character (maybe a hidden character) being sent before the HTTP headers.I know, I checked that.
Are your two servers running the same OS? Use 'vi' to check the script on the server (it doesn't work on) to make sure it doesn't have any Windows CTL-M's.The one where the script does not work runs debian, the one it works on runs a linux distribution I do not know. I made the script on the linux box, so I guess there are no CTL-Ms, to be sure I ran "dos2unix" over it, still does not work. Even the examples from the PHP.net documentation do not work, they always give me that warning message... Jürgen Geuter -- ICQ # 81510866 - http://www.emptiness.de - thanatos@emptiness.de Alcohol and Math don't mix. So please don't drink and derive!