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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -