richcleverley
MIS
OK, I know that if you send something to the browser and then try to session_start() you get errors about the headers already being sent.
However, I have a file which is accessed from a meta refresh after a login. The first lines in the file are
but I am still getting the errors. Nothing is output to the screen before the session_start at all once the file is called by the meta refresh. If I go to the next page which also uses sessions (this is a client area where they need to follow various steps) the problem disappears so sessions can obviously be set.
The funny thing is on my local apache server (xampp on winxp pro) I don't get this; It's just on my host (linux).
Any ideas.
Richard
However, I have a file which is accessed from a meta refresh after a login. The first lines in the file are
Code:
<?
session_start();
but I am still getting the errors. Nothing is output to the screen before the session_start at all once the file is called by the meta refresh. If I go to the next page which also uses sessions (this is a client area where they need to follow various steps) the problem disappears so sessions can obviously be set.
The funny thing is on my local apache server (xampp on winxp pro) I don't get this; It's just on my host (linux).
Any ideas.
Richard