實現Profile購物車的匿名使用者遷移

2021-06-01 02:02:23 字數 443 閱讀 8786

ie

在global.asax檔案中,增加乙個方法:

protected void profile_migrateanonymous(object s, profilemigrateeventargs e)

//清除匿名cookie,不然每次請求頁面都執行此事件

anonymousidentificationmodule.clearanonymousidentifier();

// response.cookies["username"].expires = datetime.now.adddays(-1);

//匿名cookie標識已重置,下次匿名訪問將建立新的profile資料條,原來的匿名profile資料條已無意義

profilemanager.deleteprofile(e.anonymousid); 

}

實現Profile購物車的匿名使用者遷移

在global.asax檔案中,增加乙個方法 protected void profile migrateanonymous object s,profilemigrateeventargs e 清除匿名cookie,不然每次請求頁面都執行此事件 anonymousidentificationmod...

購物車實現步驟

1 登陸介面login.php 註冊 insert into tbl user 登入 select from tbl user 2 商品展示頁面carlist.php insert into tbl product mysql connect sql mysql query mysql fetch ...

php cookie 實現購物車

php cookie實現購物車思路 首先把獲取到的資料進行序列化,之後新增到cookie中,之後再取出 取出之前去除反斜槓 用stripslashes函式解決 注釋 預設情況下,php 指令 magic quotes gpc 為 on,對所有的 get post 和 cookie 資料自動執行 ad...