• Resolved tarabusk

    (@tarabusk)


    Hi,
    Thank you for your plugin.
    It’s working great, I’m using the cookie setting, I’d like to add a button to disconnect and somehow I can not remove the cookie.
    I added cookie.remove(‘passster’); in javascript that does not seem to work.
    Any advice ?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @tarabusk,

    I encountered the same problem a while ago.
    This relates to the missing ability to remove a cookie only with JavaScript (security reasons).

    To solve this you simply modifying the expiration time (set it to 0) like so:

    cookie.set('passster', '', { expires: 0,path: '/',});

    That should work fine for you.

    Best regards,
    Patrick

    Thread Starter tarabusk

    (@tarabusk)

    Many thanks, It works !

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to disconnect’ is closed to new replies.