Added checking $_SESSION when session_start() is executed

I added checking $_SESSION, because an error occurs at session_start() if already session started.