ric4rdo Posted July 22, 2019 Share Posted July 22, 2019 I want to do this for the template, how do I? Link to comment Share on other sites More sharing options...
newbie LAC Posted July 23, 2019 Share 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()); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.