How do you test to see if sessions are on. This is not the way...
session_start();
if(isset($_SESSION)) {
echo "sessions ON<br>";
}
else{
echo "sessions OFF<br>";
}
session_destroy();
if(isset($_SESSION)) {
echo "sessions ON<br>";
}
else{
echo "sessions OFF<br>";
}
Try this:
if(session_id())
http://php.net/manual/en/function.session-id.php
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