On Monday 12 April 2004 08:23, Andy B wrote:
didnt know if it was possible to use $_SESSION vars in that function or any
user defined functions for that matter...
Why didn't you waste one minute of your time to try it out?
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source
//log function
//writes log files
function WriteLog($LogType){
switch($LogType:
case login:
//use session vars here...
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
//log function
//writes log files
function WriteLog($LogType){
switch($LogType:
case login:
//use session vars here...
}
What is the question ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
didnt know if it was possible to use $_SESSION vars in that function or any
user defined functions for that matter...
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, April 11, 2004 8:11 PM
Subject: Re: [PHP] using $_SESSION inside of user functions
Andy B wrote:
//log function
//writes log files
function WriteLog($LogType){
switch($LogType:
case login:
//use session vars here...
}
Yes.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals www.phparch.com
--
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
6 matches
Mail list logo