I have never heard that $GLOBALS[''] causes performance issues, where did you get this
info? does $HTTP_SESSION_VARS work if you turn
register_globals on;
in php.ini? here is my session.egn file.
<?php
include_once('time.egn');
if ( isset($PHPSESSID) )
session_id($PHPSESSID);
session_start();
if (!isset($HTTP_SESSION_VARS['SessionID']))
{
$SessionID = mtime();
session_register('SessionID');
}
$PHPSESSID = session_id();
$SID = "PHPSESSID=$PHPSESSID";
?>
--
Chris Lee
[EMAIL PROTECTED]
"Michael Champagne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Ok, I'm not really getting this. Without anything in my php.ini I was able to
register session vars just like session_register('var') and then access them
using $GLOBALS['var']. From what I'm gathering there's a performance hit from
using the $GLOBALS? So I turned register_globals off, I'm registering my
session vars the same way (i.e. session_register('var')) and then I try to
access them with $HTTP_SESSION_VARS['var'], but I don't see my variables. I
also defined $HTTP_SESSION_VARS as a global at the top of my function. Does
anyone know exactly how this works or can point me to a reference page that
has how this works? Thanks in advance for any replies.
--
Michael Champagne, Software Engineer
Capital Institutional Services, Inc.
wk: [EMAIL PROTECTED]
hm: [EMAIL PROTECTED]
******************************************************************
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction, unless specifically agreed otherwise. All market
prices, data and other information are not warranted as to
completeness or accuracy and are subject to change without
notice. Any comments or statements made herein do not
necessarily reflect the views or opinions of Capital Institutional
Services, Inc. Capital Institutional Services, Inc. accepts no
liability for any errors or omissions arising as a result of
transmission. Use of this communication by other than intended
recipients is prohibited.
******************************************************************
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]