Hi,
I'm currently building an object-oriented shopping cart with PHP 4.3.2 and
MySQL 4.0.14.
I am looking at storing a Cart object within a PHP session, however I am not
completely sure on the best way to achieve this. I have read up and there
seems to be varying advice. Should I need to serialise and unserialise the
object or is this automatic and should I be using session_registe r()? For
reference, register_global s is off.
I'd be grateful if anybody could help.
Thanks in advance,
Matt
I'm currently building an object-oriented shopping cart with PHP 4.3.2 and
MySQL 4.0.14.
I am looking at storing a Cart object within a PHP session, however I am not
completely sure on the best way to achieve this. I have read up and there
seems to be varying advice. Should I need to serialise and unserialise the
object or is this automatic and should I be using session_registe r()? For
reference, register_global s is off.
I'd be grateful if anybody could help.
Thanks in advance,
Matt
Comment