-1

How can I remove a unknown session start without my knowledge?

I get this notice:

Notice: a session had already been started -ignoring session_start

Screenshot of the errormessage

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
  • Does that file include any files? Where do you start the session? `session_start()` should always be called *before* any output is made, as with PHP headers. – Qirel Oct 13 '15 at 11:26

2 Answers2

0

The session_start()- function can only be called one time, and is then defined for the rest of the file. If you have it included from another file, you need not call it again from this file.

Hussy Borad
  • 626
  • 5
  • 20
0

Perhaps you could check with session_status() if session is already running and then decide whether or not to call session_start()

Have a look at: http://php.net/manual/en/function.session-status.php

Jinksy
  • 421
  • 4
  • 11