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
Is array empty php?
Why do we need session?
Which is better php praogramming or cad/cam scope wise and also salaray wise?
What is php session start?
Explain what does $_server means?
What is difference between ksort() and usort() functions.
Tell me how would you declare a function that receives one parameter name hello?
What is meant by variable variables in php?
Explain about looping in PHP?
Is php used for frontend or backend?
What is a php tag?
Tell me what is the importance of "action" attribute in a html form?
What is session_register()?
What is Mcrypt used for?
How to check if a string contains a character or word in php?