How can we register the variables into a Session?

Answer Posted / subrat

$_SESSION[?name?] = ?Chinmay?;

To destroy a session: unset($_SESSION[?name?]);

Is This Answer Correct ?    5 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function file_get_contents() useful for?

484


What is difference between session_unset and session_destroy?

506


What is $globals php?

538


What is needed to be able to use image function?

528


Is empty java?

537






Explain me difference between mysql_connect and mysql_pconnect?

555


How do I end a php session?

509


Why do we use interface in php?

537


What is the purpose of break and continue statement?

526


What is the use of array_count_values() in php?

539


Is learning php easy?

528


What is the super method?

566


What the limitation of header() function in php?

511


What is list function with their uses.

533


What types of loops exist in php?

546