+ 20
In php, how to use session and stored the data in server ?..
<?php session_start(); $_SESSION[]; ?> start session like this, it's correct or not...
7 ответов
+ 17
thank for given the link..
+ 15
Thanks for answer...
+ 6
<?php
session_start();
$_SESSION['admin'] = "test";
?>
Session is a temporary file that can be Access by all pages but because this is temporary It will be gone after you close browser because it's not stored on computer
to store data on server first you need to create database on server using SQl query
+ 3
Read all the comments in this code carefully
https://code.sololearn.com/wyRoWNIBl1Sx/?ref=app
+ 1
you have enter session_start();
and use $_session variable for it
+ 1
To store data on a server you must use a Database like MySQL.
+ 1
first start session like this
session_start()
then to access stored session data, use below code
$_SESSION["sessiondataname"]