Re: using $_SESSION inside of user functions
| From: | daniel at electroteque dot org | Date: | Mon, 12 Apr 2004 00:31:16 +0000 |
| Subject: | Re: using $_SESSION inside of user functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183135@lists.php.net to get a copy of this message | ||
> Andy B wrote:
>
>> //log function
>> //writes log files
>>
>> function WriteLog($LogType){
>> switch($LogType:
>> case "login":
>> //use session vars here...
>> ....}
>
> Yes.
>
yes in the latest, all request methods are in the super global scope,
$_POST, $_GET, $_SERVER, $_SESSION and constants can be used within the
function