How can we know that a session is started or not?

Answer Posted / tushar

if(session_id()=="")
then we can say session is not started
otherwise
yes

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between characters 23 and x23?

752


What is php namespace?

689


What are the advantages of using php?

675


What does php do?

684


What are hooks in php?

675






Is empty in php?

685


Is json a string php?

663


What are the advantages of stored procedures?

719


How to pad an array with the same value multiple times?

625


Explain some most commonly use string functions in php?

654


How to call a php function from html button?

748


How do I know my xampp version?

670


How to redirect a page in php?

746


What is the difference between array_map () and array_shift ()?

676


What is cms php?

663