How can we register the variables into a Session?
Answer Posted / tarun
session_start();
$ses_variable="name";
session_register('ses_varaible');
// to access the session
echo $_SESSION['ses_variable'];
Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
What is the difference between myisam and innodb?
What is mysqli_query?
What are the 5 types of variables?
What is mysql_real_escape_string used for?
How many types of php frameworks are there?
How to check if a string contains a character or word in php?
Tell me what is the importance of "action" attribute in a html form?
What is encapsulation in php?
What is string in php?
Tell me which function gives us the number of affected entries by a query?
Explain scalar type declarations in php7?
What is the difference between Split and Explode in PHP?
Is php a middleware?
How do I escape data before storing it in the database?
Is laravel better than codeigniter?