hello,
I have following lines of code to clean up application.cookies upon user sign out.
Dim sCookieName As String = “CPBrowserInstanceID”
If Application.Cookies(sCookieName) IsNot Nothing Then
Application.Cookies.Remove(sCookieName)
End If
This works as expected in local dev env. However, once it’s deployed to test machine, I find that the cookies stays on after user sign out.
Is there some way to ensure that i can clean up cookies in my deployed application?
thank you,
Removing a cookie from the Cookies collection only removes it from the collection, not from the client. You need to set the expiration date to remove it from the client as in ASP.NET.
https://msdn.microsoft.com/en-us/library/ms178195.aspx
We’ll add a remarks section in our docs as well.
Please login first to submit.