i want to store a value in to session using PHP
for example $id=10 i want to store this value in a session
$id=10
i tried
$pid= sessi
Here is the right code to store the variable in PHP session:
Now to get the session data:
Also, I have write a complete guide on PHP session on one of my blog: How to start a PHP session, store and accessing Session data?