Jump to content

Working with multple sessions


ragrim

Recommended Posts

Hi,

 

Im building a cart system and i have sessions for my cart and for my login, i find as soon as i login im getting a blank line added to my cart so im assuming its conflicting with my login session.

 

This is my login session

 

$_SESSION['SESS_MEMBER_ID']

 

And my cart session is

 

$_SESSION['cart']

 

The code im using to display my cart is

 

$cart = $_SESSION['cart'];

foreach( $cart as $key => $value){						
echo "<td>" . $key . "</td><td><input type='text' value='" . $value . "'</td><td>Delete</td></tr>";

}

 

 

What am i doing wrong here? any help would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/252262-working-with-multple-sessions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.