Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 16, 2009 05:45 AM by vora_bhaumik
Jul 15, 2009 07:39 AM|LINK
When user isn't registered he can add items to shopping cart or not ? Because I can't find in this project nothing with sessions.
Jul 15, 2009 06:59 PM|LINK
You can add if you want to allow user to add product in to the Cart with out authente in to the site by maintaining that value in to the Session.
using Browser's Session.
use string sesssion = Session.SessionID;
you can get that Perticular user's browser Session id.
Jul 15, 2009 07:23 PM|LINK
But now only loged on/authenticated users can add items to cart or not ?
Jul 16, 2009 04:00 AM|LINK
Yes you can, just check the the user is authentictaed or not on Page_Load. If user is authenticated then user can add item on the Cart.
On the click event of the Perticular Item check the User is authentictaed or not. If the User is authenticted then it will add in cart and if not authenticted then show the messgae that "Please Login."
Jul 16, 2009 04:38 AM|LINK
And before placed an order, items in cart are saved in session or in database ?
Jul 16, 2009 05:45 AM|LINK
Check both the links such a nice Example ,