I have very big stack of code.
I need to use session_start() function always.
If I hasn’t used session_start() not run each other.
example:
<?php
if(session_start() == "used")
{
// not run
}
else
{
session_start();
}
?>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
do you mean, u want to check if the session has already been started? you can get it from here
Check if PHP session has already started