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 that "enumerated array" equal to "numeric array"?

2022


What is needed to be able to use image function?

523


what does this symbol mean in php?

605


What is laravel php?

535


Can you explain, when to use if-else if-else over switch statements?

536






Tell me what does the scope of variables means?

531


What is preg_match?

540


How to remove duplicate values from php array?

533


Explain $_FILES Superglobal Array?

581


Who is the father of php?

557


How to create an array of a group of items inside an html form?

569


What is the difference between myisam and innodb?

507


What is strcmp?

517


What is difference between sql and php?

543


What is session in c#?

529