cost 152 ms
從 CakePHP 的集合中刪除/刪除 cookie 對象后,如何更新請求 CookieCollection

[英]How can I update a request CookieCollection after after removing/deleting a cookie object from the collection in CakePHP

我在我的項目中使用請求 cookie 時遇到問題。 我有一個包含大約 3 個值 a、b 和 c 的 cookie 集合。 然后我嘗試以下操作: 執行此操作后,'b' 僅從此實例中刪除: $cookieCollection 。 但它仍然在 現在如何更新 CookieCollection ...

C#HttpWebRequest使用cookie

[英]C# HttpWebRequest Use cookie

我在C#中使用Cookie處理時遇到了一些問題 因此,在我的網站上,我有一個登錄頁面,登錄后,便被重定向到主頁。 我用HttpWebRequest進行連接並遵循重定向,我創建了一個類,這里​​是: 我很好地加載了主頁,並且設法獲得了cookie。 因此,我開發了一個使用Co ...

為什么HttpCookieCollection.Get在從手動實例化的對象(而不是當前的HttpContext)調用時返回null

[英]Why does HttpCookieCollection.Get returns null when called from a manually instantiated object (and not from the current HttpContext)

在HttpCookieCollection.Get MSDN文檔中 ,聲明: 如果指定的cookie不存在,則此方法將創建具有該名稱的新cookie。 這是正確的,並且在從“真實”Web服務器調用HttpContext.Request.Cookies或HttpContext.R ...

從瀏覽器查看時,Sharepoint 2010設置cookie到期日期似乎可以正常工作,但是服務器代碼看到01/01/0001到期

[英]Sharepoint 2010 setting a cookie expiration date seemsto work when viewed from browser but server code sees 01/01/0001 expiration

這是將cookie添加到請求中的 似乎很好,直到在嘗試讀取Cookie的Sharepoint 2010 context.PostAuthenticateRequest事件期間 當我在瀏覽器中看到Cookie的到期日期為2012年12月6日時,我得到的日期為01/01/0001 ...

更新在ASP.NET中先前請求上設置的cookie的最佳實踐是什么?

[英]What is the best practice for updating a cookie that was set on a previous request in ASP.NET?

這是場景。 在先前的請求中已設置了具有鍵"MyCookie" cookie。 我可以通過HttpContext.Request.Cookies.Get("MyCookie") 。 我想執行更新,例如向Cookie值集合中添加另一個值,但是我不確定100%我做對了。 在以下示例中,我是 ...

HttpCookieCollection.Add vs HttpCookieCollection.Set - Request.Cookies集合是否被復制到Response.Cookies集合?

[英]HttpCookieCollection.Add vs HttpCookieCollection.Set - Does the Request.Cookies collection get copied to the Response.Cookies collection?

我只是想澄清一下。 我知道,如果我在之前的請求中設置了cookie,它將顯示在我的Request.Cookies集合中。 我想更新現有的Cookie。 我的Request.Cookies集合中的cookie是否已復制到我的Response.Cookies集合中? 我是否需要使 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM