i am using session array in my project so i have to use
$_SESSION['checkToken']['quote']
this will work almost in all files. but in few files i am facing error
undefined variable _session
.
ex. In my TempMediaController i am facing same error when i am going to access
echo $_SESSION['checkToken']['quote']
. but same thing works in other controllers.
For avoid this error i got one solution. on starting of TempMediaController i add @session_start();
. This solves my problem. but i know this is not proper way. So what is proper way to solve this issue?