What is the method to register a variable into a session?



What is the method to register a variable into a session?..

Answer / Virendra Yadav

To register a variable into a session in PHP, you can use the $_SESSION superglobal array. Here's an example: $_SESSION['variable_name'] = 'variable_value';

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Is php a backend?

1 Answers  


What is the current php version?

1 Answers  


What is chrome logger?

1 Answers  


How do I update php?

1 Answers  


How do I run a php file?

1 Answers  


What is difference between mysql_fetch_array and mysql_fetch_assoc?

1 Answers  


How do you pass a variable by value in php?

1 Answers  


How can you get web browser’s details using PHP?

1 Answers  


hai, friend i srinu i had completed my graduation in 2004. now i am fineshed PHP course .may i get any oppartunity on php progr pls sugg me . thank u

0 Answers  


for image work which library?

1 Answers  


What is php array function?

1 Answers  


How to track user logged out or not? When user is idle?

1 Answers  


Categories