新手问题 请教下 类似云梯推荐用户 实现思路

luffycn · January 06, 2015 · Last by heylonj replied at January 06, 2015 · 1511 hits

在 URL 后面带个标识 http://localhost:3000?recommend=xxxx

把这个标识存到 session 里面 如果用户不购买,直接关掉页面,下次再打开时,读取 session 如果用户没有清空 cookie 或者浏览器 cache 的话,session 值 应该能保存一段时间

不知道有没有更好的实现思路?

好像大部分都是存在 cookie 里了,再加个 20 年后 expire

You need to Sign in before reply, if you don't have an account, please Sign up first.