I am having problems with initializing session variables inside functions
While writing PHP scripts I need to set some session variables inside some functions
$message="You are NOT authorized to view this page";
The same code for setting session variables in working fine when I use in the main part of the PHP i.e. not inside any function.
Can anyone figure out my mistake in setting session variables??