I m creating an eCommerce kinda website. Users can add products to Cart. This is just like I created tables as Cart, Products, Users.
For Storing UserID in Cart it's storing using SESSION['SecurityAssist_UserID']
The user doesn't really have to log in to add products to the cart.
The user should be able to add products to the cart irrespective of user login. The individual guest user can view their own cart.