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
What is php ci?
Php program to generate fibonacci series?
Is java is better than php?
What is use of isset function in php?
Write a hello world program using variable?
Is php is dying?
How will you calculate days between two dates in PHP?
Explain how is it possible to set an infinite execution time for php script?
What is framework in php for beginners?
What is sql injection in php?
How does cookies work in php?
How to remove the new line character from the end of a text line in php?
What do you mean range() in php?
How many data types are used by php?
Tell me how do you define a constant?