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
Which will start a session?
Which functions are used to count the total number of array elements in php?
Is php case sensitive?
What is use of mysqli_query in php?
Why constructor is not overridden?
Which is correct about mysqli and pdo?
What is a php certification?
Tell me how to set a page as a home page in a php based site?
What is the best way to avoid email sent through php getting into the spam folder?
How can you send email in php?
What is memcache?
How to register a variable in PHP session?
How many types of array supported in php?
What is difference between static and constant?
How do you create an array in php?