*I've searched SO before but wasn't able to fix my issue*

I have my session parameters included in my header. 
And this header is included in all my pages. 
Works great except for the landing page (where users register or log in): I get the infamous `Cannot send session cookie - headers already sent` error.

Is there a way I could use `disable session_start();` on the landing page only without having to remove the whole header ?

If not, what other options should I look into ?

**EDIT:** 

Here's my session parameters at the top of my header file:

```
session_start();
$lifetime=5000000;
session_set_cookie_params($lifetime);

```

**This error doesn't show in development. Only in production.**