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 is the difference between php and core php?

493


What is the goto statement useful for?

554


What is zend studio for?

540


What is warning – “cannot modify header information – headers already sent”?

637


What does mvc stand for and what does each component do?

543






What is the difference between htmlentities and htmlspecialchars in php?

480


Does php have block scope?

526


What is the static variable in function useful for?

533


Which php framework is best for beginners?

511


What are classes in php?

556


Tell me what is the difference between exception::getmessage and exception::getline?

511


Is null function in php?

572


Is it possible to destroy a cookie?

541


What is the difference between query and question?

520


What is the difference between array_merge() and array_merge_recursive() in php?

547