Home › Forums › Any Mobile Theme Switcher › setcookie bug
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
Hi Jeff,
Thank you so much pointing it out. I will soon send this in next release.
Thanks.