Jump to content

PHP Cookies problem


lilywong

Recommended Posts

I am doing a website something like online shopping system, anyone allows to browse my website and add cart (before log in), and the item added will be store using cookies, so user are allow to view their shopping basket even he has not log in yet.

However, if a user finally decided to buy the selected item in the shopping basket, he will then need to log in, if he is a new user he will need to register, else just simply put his username and password. After log in, i decided to use Session to keep the user ID and selected item, is it possible to do that ? is it possible to use cookies to keep user preference before log in, and change to use Session to keep user preference after log in?

I'm wondering, please advice. thanks.
Link to comment
https://forums.phpfreaks.com/topic/14655-php-cookies-problem/
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.