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 can php and javascript interact?

751


Is PHP an open source software?

582


Is age interval or ordinal?

526


What are the benefits of composer?

537


how to detect a mobile device using php

593






/temp is a type of filesystem directory. State Whether True or False?

592


What is the difference between rest and soap?

574


Does php support multiple inheritance?

503


Tell me what is the use of the function htmlentities?

522


Is null in php?

531


Why triggers are used in mysql?

534


How to take a substring from a given string in php?

522


How to replace a substring in a given string?

556


I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?

517


What is artisan in php?

507