I am having trouble with my sessions.

I get the error 

> 
> Warning: session\_start(): Cannot send session cache limiter
> 
> 
> 

I have this code in 2 pages

```
if (!isset($_SESSION)) {
  ini_set('session.gc_maxlifetime', 3*24*60*60);
  session_set_cookie_params(3*24*60*60);
  session_start();
}

```

I can only find instances of people who haven't does the isset check, so I have no idea why this is happening :( 

I've checked for whitespace, my php tag is on line 1 in both files.

This is the first page, which loads dbmgmt which has the above code. I need the session code in both files because dbmgt is not always included from a page that creates a session.

```
<?php
if (!isset($_SESSION)) {
  ini_set('session.gc_maxlifetime', 3*24*60*60);
  session_set_cookie_params(3*24*60*60);
  session_start();
}
require("dbmgmt.php");
?>

```