{RESOLVED} Releasing cookies...
Hi...
I'm using C# (Vis .NET 2005) for Web Application.
I've got a simple question to ask, coz I confuse on this thing.
I've created a cookies at my Login form, named = "strUser".
And I also add 1 button to Logout from system.
I need to release that cookie when user press Logout button.
I've tried to set the expires to 1 second, but nothing change.
Code:
logCookie.Expires = DateTime.Now.AddSeconds(1);
I've also try to set the value to null, also not work.
Code:
logCookie.Value = null;
And I've also tried to remove the cookie... this one ? also not work.
Code:
Request.Cookies.Remove("strUser");
And finally, I've tried to clear the cookie. oh boy... also not work.
Code:
Request.Cookies.Clear();
please someone help me on how to remove that cookies....
thanks....
Regards,
~ Wj ~
SQL Server 2005 Developer