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
How to remove a file?
How is a session id generated?
what is the current salary package in India for a PHP programmer who has 1.5 years experience
Tell me whether it is possible to share a single instance of a memcache between multiple php projects?
What is the name of scripting engine in php?
What is htaccess in php?
What does $globals means?
Explain what are the two main string operators?
What is array filter in php?
Tell me which programming language does php resemble to?
Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?
Tell me what does the scope of variables means?
What is mysql_fetch_row?
How is it possible to return a value from a function?
What are php libraries?