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

Is array empty php?

676


Why do we need session?

717


Which is better php praogramming or cad/cam scope wise and also salaray wise?

1771


What is php session start?

736


Explain what does $_server means?

811


What is difference between ksort() and usort() functions.

702


Tell me how would you declare a function that receives one parameter name hello?

739


What is meant by variable variables in php?

713


Explain about looping in PHP?

827


Is php used for frontend or backend?

728


What is a php tag?

700


Tell me what is the importance of "action" attribute in a html form?

743


What is session_register()?

761


What is Mcrypt used for?

766


How to check if a string contains a character or word in php?

763