hi all,
i have a problem of session in php5
in my first page i have this code
and in my other page i want to read the session variable to know if the user is logged in or notCode:<?php session_start(); //Some code here $_session['User_Logged']="Yes"; ?>
but i get an error in the red line aboveCode:<?php session_start(); if($_session['User_Logged']!="Yes") { echo "You are not logged in." exit(); } //Some Actual Working HERE ?>
Undefine Index User_Logged
this code has worked fine for me in php4 before
pls help




pls help

Reply With Quote