I\'m trying to start the session in a header page in my webiste. But it seems there might be some sort of bug because it fails with the following error:
Warn
As Selular88 mentioned, Adding the path works and fix this issue. You can also check the path using
// This will output your current path. echo session_save_path() ;