I have a login link that runs a javascript function that calls the exit page. This is the logout page:
If Response.Cookies.Count > 0 Then Response.Cookies("aLog").Value = Nothing Response.Cookies.Clear() End If
Initially, I just had cookies.clear, but that didn't work.
Here is the javascript that sends the request to the exit page:
<script type="text/javascript"> //<![CDATA[ $(document).ready(function() { $('#logout-link').click(function() { if (confirm("Really log out?")) { $.cookie('aLog', null); location.href = $(this).attr('href'); } return false; }); }); //]]> </script>
The jQuery $.cookie does not work either. The cookie is configured on ASP.NET, so I decided that I could turn it off with ASP.NET, but apparently not. Any ideas / suggestions?
Anders
source share