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

Do you know how to declare an array in php?

0 Answers  


What are the ways to define a constant in php?

0 Answers  


What is a closure in php?

0 Answers  


Tell me what are the different types of errors in php?

0 Answers  


What is a variable cost example?

0 Answers  






What are different ways to redirect from on page to other?

9 Answers  


What is the name of the scripting engine that powers PHP?

0 Answers  


Is multiple inheritance supported in php?

0 Answers  


What is http php?

0 Answers  


What is the use of strip_tags() method?

0 Answers  


Is php deprecated?

0 Answers  


What are php keywords?

0 Answers  


Categories