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

Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

0 Answers  


What is php crud api?

0 Answers  


What is $_ post in php?

0 Answers  


What are the differences between PHP 3 and PHP 4 and PHP 5?

2 Answers  


How are Variables Defined in PHP?

6 Answers   T3 Softwares,


How to set cookies?

0 Answers  


How do you check if a variable has been set in php?

0 Answers  


How does header() work . What do they tell the server same question for SESSIONS

2 Answers   Yahoo,


Does wordpress still use php?

0 Answers  


How can we determine whether a variable is set?

0 Answers  


What is sticky form in php?

0 Answers  


What is meant by nl2br()?

4 Answers   Rushmore Consultancy,


Categories