V
V
Valery Efremov2016-07-26 17:28:42
JavaScript
Valery Efremov, 2016-07-26 17:28:42

jQuery cookie expires?

if ( $.cookie('visit') == undefined ){
        $.cookie('visit', true, {expires:1,path:'/',});
        alert("Привет!");
    }

I want the alert to be shown once a day, but on the second day it is no longer shown.
As I understand it, the cookie expires, it is not deleted, so the condition is true?
How to solve the problem correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery Efremov, 2016-07-26
@WebAir

No, I just made a mistake. Sorry. The question is closed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question