I have one test.php file.
I wrote two lines in it.
session_start();
echo session_id();
It gives me full session id when I run it from command line.
When I call this script from browser it outputs null. My web server is apache.
What is the problem?
session_start()will return TRUE or FALSE if a session couldn’t be started. Try to output that value