newbie LAC Posted July 23, 2019 Posted July 23, 2019 Set on 7 days php \IPS\Request::i()->setCookie('cookie_name', 'value', \IPS\DateTime::create()->add(new \DateInterval('P7D'))); js var date = new Date(); date.setDate(date.getDate() + 7); ips.utils.cookie.set('cookie_name', 'value', date.toUTCString());
Recommended Posts
Archived
This topic is now archived and is closed to further replies.