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

Why php is used with mysql?

0 Answers  


What is the maximum size of a database in mysql?

0 Answers  


Draw the architecture of Zend engine?

4 Answers  


What is the meaning of xdebug?

0 Answers  


What is the differences between $a != $B and $a !== $B?

0 Answers  






What is php dependency injection?

0 Answers  


What is array function in javascript?

0 Answers  


What is php and its features?

0 Answers  


What is the difference between InnoDB and MyIsam

1 Answers   Brain Technosys, IBM, TCS, TLI Software, Wipro,


How do you end a session in php?

0 Answers  


Tell us how can we access the data sent through the url with the post method?

0 Answers  


Tell me what library is used for pdf in php?

0 Answers  


Categories