can we give session a name like function in php
Posted: Sat Dec 20, 2008 5:15 am
Hello
the below code i got in forum to check where a user is logged in or not
can anyone tell me what is this session_name_here means...
in my login page i am not giving any name to the session i am starting the session and saving name and other data in variable..
does this means the name i save in variable or it is that i can give a name to session like we give to a function
THANK YOU IN ADVANCE
the below code i got in forum to check where a user is logged in or not
Code: Select all
<?php
if (isset($_SESSION['session_name_here'])) {
// Code to be run here
}
?>in my login page i am not giving any name to the session i am starting the session and saving name and other data in variable..
does this means the name i save in variable or it is that i can give a name to session like we give to a function
THANK YOU IN ADVANCE