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
try
print_r(session_id());
and what is the output
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With