setcookie bug

Home Forums Any Mobile Theme Switcher setcookie bug

This topic contains 1 reply, has 2 voices, and was last updated by  Dinesh 2 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3412

    Jeff Paetkau

    Hi,

    The setcookie time parameter takes a UNIX timestamp no a number of seconds in the future. Thus both lines 48 and 51 should be:

    setcookie(‘am_force_theme_layout’, $_GET[$amts_force_param], time()+$time, $url_path);

    not

    setcookie(‘am_force_theme_layout’, $_GET[$amts_force_param], $time, $url_path);

    regards,
    Jeff Paetkau

    #3418

    Dinesh
    Keymaster

    Hi Jeff,

    Thank you so much pointing it out. I will soon send this in next release.

    Thanks.

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

The topic ‘setcookie bug’ is closed to new replies.