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 the timeout period on session values?
What is difference between session_unset and session_destroy?
How to know user has read the email-php?
Will react hooks replace redux?
How to enable cURL in PHP?
What is the meaning of symbol '$' in jquery?
which will print out the php call stack?
What is the scope of a variable defined in a function?
if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer
Can php run on windows server?
Is php 5.6 secure?
Tell me which programming language does php resemble to?
Which library is used in php to do various types of image work?
Explain me what is sql injection?
Name some of the functions in php.