Skip to content

Commit

Permalink
add functional to save cooke at server side
Browse files Browse the repository at this point in the history
  • Loading branch information
RrredHead committed Oct 14, 2015
1 parent 3aeb7c1 commit 400e3cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ Application.prototype.cookie = function(key, value, params) {
params.expires = new Date(Date.now() + params.expires * 24 * 60 * 60 * 1000);
}

this.cookies[key] = value;
this.emit('cookie', key, value, params);
} else {
value = this.cookies[key]; // Извлечь значение куки key на сервере из запроса клиента
Expand Down

0 comments on commit 400e3cf

Please sign in to comment.