I am working on a login using cookies to save the user, but at the time of logout using jquery I want you to delete the cookie so that I have to authenticate again, how can I do that?
try this line that I found on the internet:
$.removeCookie('Usuario', { path: '/' });
The cookie is called a user but in the browser I get an error when wanting to use that method, it tells me that .removeCookie is not a function. I have added these two libraries:
<script src="../jquery-3.1.1.js"></script>
<script src="carhartl-jquery-cookie-92b7715/jquery.cookie.js"></script>