php - I need to know session_start has used before? -
i have big stack of code.
need use session_start() function always.
if hasn't used session_start() not run each other.
example:
<?php if(session_start() == "used") { // not run } else { session_start(); } ?>
do mean, u want check if session has been started? can here
check if php session has started
if(session_id() == '') { // session isn't started }
Comments
Post a Comment