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:

if (!isset($_SESSION['kshopcart'])) {
$_SESSION['kshopcart'] = new Cart;
}

$USER =& $_SESSION['kshopuser'];
$CART =& $_SESSION['kshopcart'];


doing a vardump the result is:
object(cart)(3) { ["items"]=>  array(0) { } ["total"]=>  int(0) ["tax"]=>  int(0) }


Now inside XOOPS the same vardump gives me:
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?

Login

Who's Online

137 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 137


more...

Donat-O-Meter

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

Latest GitHub Commits