adspace
Which is the correct way to check if a session has already been started ?
Answer Posted / Siddharth Chaudhary
"You can check if a session has already been started in PHP by using session_id() function. If session_id() returns a value, it means the session has already been started. Otherwise, you need to start it with session_start()."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is trait in php?
if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer
Name and explain five of the PHP error constants?
How to create a web form?
Which variable declarations within a class is invalid in php?
List some features of php that are deprecated in php7?
What is difference between static and final in php?
Explain me is it possible to destroy a cookie?
What is the current stable version of php? What advance thing in php7?
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
What is the difference between htmlentities() and htmlspecialchars()?
What does $_files means?
Tell me what kind of things have you done on the social side?
How to calculate the difference between two dates using php?
how to detect a mobile device using php