What are the basic steps to store PHP session in to Database?



What are the basic steps to store PHP session in to Database?..

Answer / dharamveer singh sagar

To store PHP session in a database , need to foolow step,
which is given below
1. to create session
<?php session_start();?>
2.assign to a variable
<?php $s=$_SESSION['username'];?>
3 then store it into database

Is This Answer Correct ?    15 Yes 1 No

Post New Answer

More PHP Interview Questions

Where do I run php code?

0 Answers  


Why do we use htaccess and where?

0 Answers  


what is benefit of magento?

0 Answers  


Explain setcookie() function in php?

0 Answers  


What is php and its advantages?

0 Answers  






What is php used for?

0 Answers  


What is $globals php?

0 Answers  


How can we encrypt the password using php?

0 Answers  


What is apache and php?

0 Answers  


Code to open file download dialog in PHP?

0 Answers  


What is php constructor?

0 Answers  


Does strlen include null?

0 Answers  


Categories