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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are differences between PECL and PEAR?

736


How to make a class in php?

727


How does session work in php?

755


What are escaping characters? Explain with an example?

734


Is null or empty c#?

711


Why do we use htaccess

836


What is the purpose of the '.myd' file extension? What do thes file contain?

764


How does the identity operator === compare two values?

888


Is php difficult to learn?

697


What is the function mysql_pconnect() useful for?

737


How to get the value of current session id?

723


How to support multiple-page forms?

768


Why does php need server?

750


What is mysqli php?

762


What is singleton pattern in php?

677