Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
4 + 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
array(0) { } ["total"]=> int(0) ["tax"]=> int(0) } [/code] Now inside XOOPS the same vardump gives me: [code] object(__PHP_Incomplete_Class)(4) { ["__PHP_Incomplete_Class_Name"]=> string(4) "cart" ["items"]=> array(0) { } ["total"]=> int(0) ["tax"]=> int(0) } [/code] 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?[/quote]" />

$_SESSION data getting corrupted
by kaotik on 2005/4/20 14:05:13

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

208 user(s) are online (174 user(s) are browsing Support Forums)


Members: 0


Guests: 208


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