How can we register the variables into a Session?
Answer Posted / animesh dutta
<?php
// Start the session
session_start();
?>
<?php
// Set session variables
$_SESSION["favcolor"] = "green";
$_SESSION["favanimal"] = "cat";
echo "Session variables are set.";
?>
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Tell me how can we determine whether a php variable is an instantiated object of a certain class?
What is a PHP Filter?
Why php is better?
Can you define an array argument as a reference type?
What is the Pipe Symbol represented?
What is a lambda function in php?
What are the popular content management systems (cms) in php?
How can we submit form without a submit button?
How do you parse and process html/xml in php?
What is local variable in php?
What is php string function?
Explain the difference between $message and $$message?
How to list all values of submitted fields?
Is polymorphism inherited?
How to find the length of a string?