I've just started using PHP for session management (done alot of it in
ISAPI/Delphi for many years).
My question is this:
I want to have a number of variables, for example $customer_id which
are session variables.
The PHP book I have been reading talks about
session_registe r('customer_id' ), but I have seen people comment that
this is bad practice.
How should I approach this ?
I've tried putting $customer_id = $_SESSION['customer_id'], but have
found it difficult to rewrite the changed value back into the _SESSION
array at the end of the request.
Is there any way to get around this ?
I'm running PHP in a CGI mode under IIS ....
--
Spam:newsgroup( at)craznar.com@ verisign-sux-klj.com
EMail:<01100011 001011100110001 001110101011100 10011010110
110010101000000 011000110111001 001100001011110 10011011100
110000101110010 001011100110001 101101111011011 0100100000>
ISAPI/Delphi for many years).
My question is this:
I want to have a number of variables, for example $customer_id which
are session variables.
The PHP book I have been reading talks about
session_registe r('customer_id' ), but I have seen people comment that
this is bad practice.
How should I approach this ?
I've tried putting $customer_id = $_SESSION['customer_id'], but have
found it difficult to rewrite the changed value back into the _SESSION
array at the end of the request.
Is there any way to get around this ?
I'm running PHP in a CGI mode under IIS ....
--
Spam:newsgroup( at)craznar.com@ verisign-sux-klj.com
EMail:<01100011 001011100110001 001110101011100 10011010110
110010101000000 011000110111001 001100001011110 10011011100
110000101110010 001011100110001 101101111011011 0100100000>
Comment