Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pplware

    (@pplware)

    I have just solved my problem. It was setting the expire date to “session” and that was the problem.

    I have defined a Expire date and it started working perfectly.

    The code is in file spca-font.php in line 53.

    It was:
    document.cookie=’wpca_ok=1; path=/’;

    Changed to:
    document.cookie=’wpca_ok=1; path=/; expires=Wednesday, 01-Aug-2040 08:00:00 GMT’;

    This is not the correct way but the author can use the code

    Would it be possible to change the code above so that the cookie expires after 30 days? Thank you ??

    Thread Starter pplware

    (@pplware)

    You could use PHP to do that.

    Look at function strtotime

    strtotime(‘+30 days’, time()); <= 30 days from today

    Adjust the date output to match what you need.

    I am not very familiar with php… How would I use the function? Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘keeps asking for ok in iOS, android and windows phone’ is closed to new replies.