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
What is session in PHP. How to remove data from a session?
Why is node js better than php?
Is php developer in demand?
Explain me what is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
Which is better php or wordpress?
Where is the submitted form data stored?
Which is the correct way to check if a session has already been started ?
What is a stored procedure in mysql?
Why use static methods php?
What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?
When should you use a stored procedure?
What is slim framework?
Explain include(), include_once, require() and require_once?
Write a program to display a table of any given number?
Why echo is faster than print in php?