1
kaotik
$_SESSION data getting corrupted
  • 2005/4/20 14:05

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I have this wich works fine outside xoops:

le="color: #000000"><?php if (!isset($_SESSION['kshopcart'])) { $_SESSION['kshopcart'] = new Cart; } $USER =& $_SESSION['kshopuser']; $CART =& $_SESSION['kshopcart'];


doing a vardump the result is:
le="color: #000000"><?php object(cart)(3) { ["items"]=> array(0) { } ["total"]=> int(0) ["tax"]=> int(0) }


Now inside XOOPS the same vardump gives me:
le="color: #000000"><?php object(__PHP_Incomplete_Class)(4) { ["__PHP_Incomplete_Class_Name"]=> string(4) "cart" ["items"]=> array(0) { } ["total"]=> int(0) ["tax"]=> int(0) }


From what I've been reading this might be related session_start(); wich gets iniatlized by XOOPS before the class in $_SESSION gets instantiated. I'm not sure how to correct this. Can someone help me?

Who's Online

193 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 193


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits