How can we register the variables into a Session?
Answer Posted / senthilkumar g
<?
session_start();
$username=$_GET['username'];
$_SESSION['username']=$username;
session_write_close();
?>
| Is This Answer Correct ? | 13 Yes | 4 No |
Post New Answer View All Answers
What is lamp in php?
What is the use of post in php?
How can you submit a form without a submit button?
Why would we use === instead of ==?
Where do I run php code?
How long is csrf token?
Tell me when a conditional statement is ended with an endif?
How can you increase the maximum execution time of a script in php?
How can you get the size of an image in PHP?
Why do we need abstract class in php?
What is a path Traversal?
What is php and why we use it?
List the different types of print functions available in php?
Explain PHP looping?
How to enable parsing?