cookies clean up doesn't work

0
0

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,

 

 

 

 

 

  • You must to post comments
0
0

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.

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.