Reputation:
I create $_SESSION['id']
in index.php, i tried to access $_SESSION['id']
in folder1/page1.php but I can't access session id.
How to access my session id.This is the notice I got
Notice: Undefined variable: _SESSION in C:\xampp\htdocs......
.
Upvotes: 0
Views: 84
Reputation: 21
You can use session variable in php than in all file you can session_start () is used in php script
Upvotes: 2