开发者

what data saved in cookie to identify anonymous user

开发者 https://www.devze.com 2023-03-31 15:51 出处:网络
I have an e-shopping site. I want keep anonymous user ord开发者_StackOverflow社区ers and if the browser is closed, When user come back to my site, I show user orders, Now what data I should save in co

I have an e-shopping site. I want keep anonymous user ord开发者_StackOverflow社区ers and if the browser is closed, When user come back to my site, I show user orders, Now what data I should save in cookie and use it to show user orders.


All you need to send them is a sessionid. Make sure you associate sessionsIds with your orders in the db and check for the session cookie when the user request's your webpage.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号