Hi,
In my script, I want to check if session support is enabled on the server the script is installed on. I think I can use session_status() but it requires PHP 5.4+ so, I am looking for something that will also work on previous PHP versions.
As an option, I have the following code:
if (!is_callable('session_start')) {
// session support disabled...
}
Is this a good way to do this check? Any better way you can think of?
Thanks.