Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check session php

// For PHP versions > 5.4.0

if (session_status() === PHP_SESSION_NONE) {
    session_start();
}

// For PHP Versions < 5.4.0

if(session_id() == '') {
    session_start();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #session #php
ADD COMMENT
Topic
Name
3+4 =