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

Tell me what is the difference between unset() and unlink()?

527


What is the use of array_count_values() in php?

526


What beforeFilter() is used?

640


How to make horizonatl menu and vertical menu responsive

1861


Which php framework is fastest?

497






What is new static in php?

522


What is call by reference in php?

502


Do you know what is use of count() function in php?

507


What is the difference between php4 and php5?

561


What is php session and how it works?

516


Does facebook use php framework?

546


What types of Data Can Be Used as Array Keys?

558


What are the two types of variables?

518


How do you execute a php script from the command line?

515


What is the meaning of symbol '$' in jquery?

523