blob: 912f2fe61d360fbd38ba8ae080a8cbae54d9535b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
'use strict';
module.exports = function setcookie(name, value, expires, path, domain, secure) {
// discuss at: http://locutus.io/php/setcookie/
// original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com)
// bugfixed by: Andreas
// bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
// improved by: Kevin van Zonneveld (http://kvz.io)
// example 1: setcookie('author_name', 'Kevin van Zonneveld')
// returns 1: true
var setrawcookie = require('../network/setrawcookie');
return setrawcookie(name, encodeURIComponent(value), expires, path, domain, secure);
};
//# sourceMappingURL=setcookie.js.map
|