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 constructors and destructors?
How to initiate a session in php?
How to create a text file in PHP?
Explain the difference between $var and $$var?
How can we connect to a mysql database from a php script?
How to take a substring from a given string in php?
Difference between array_combine and array_merge?
armstrong number by using php while number is given by the keyboard.?
What is cURL in PHP?
What is the difference between php and javascript?
How to create a web form?
What is the role of php.ini file?
Tell me what is the use of mysql_real_escape_string() function?
How can you declare a constant variable in php?
What is the different between count() and sizeof() in php?