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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -