0

My header is loaded with every page (include). So I start the session and check for a running session when the header is loaded again.

 if(session_status() == 1){ // 1 = none
        session_name('vitisynth_sess');
        session_start();
 }

I open the index.php page, everything is OK. I open the next page and get:

    Warning: session_name(): Cannot change session name when headers already sent in /www/htdocs/v080275/development/vitisynth/header.php on line 3

Asking for an existing session seems to be completely superfluous.

0 Answers0