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

How do you find the length of a string in php?

512


What is the use of isset() in php?

524


Explain about the connective abilities of the PHP?

594


How can you increase the maximum execution time of a script in php?

513


What is the use of post in php?

495






Which are the best start and end tags to use?

570


Can I write php code in html file?

530


What are arguments in php?

552


What is dao in php?

468


What are hooks in php?

519


What is the use of htmlspecialchars in php?

519


What is the difference between the include() and require() functions?

867


What are magic constants in php?

555


How is it possible to parse a configuration file?

501


How would you open a directory for reading in php?

562