If session_start() was not called before this function is called, an implicit call to session_start() with no parameters will be made. $_SESSION does not mimic this behavior and requires session_start() before use.

For i started php programming later I didn't knew that in earlier version you mustn't use "session_start();"