+ 1

How to use SESSION in PHP???

8th Apr 2017, 7:04 AM
Aye Mya Mon
Aye Mya Mon - avatar
2 Respuestas
+ 5
//First page <?php session_start(); $_SESSION['name'] = 'james'; ?> // Second page <?php session_start(); echo $_SESSION['name']; ?> // run first page and then second page.It will print james
8th Apr 2017, 7:30 AM
Aung Aung
Aung Aung - avatar
0
One thing that must you remember is, wherever you want to use SESSION in php, you must call start_session(); function first before you using others SESSION function or variable cmiiw :)
8th Apr 2017, 8:00 AM
cahya dwiana sn
cahya dwiana sn - avatar