Skip to content
Myr

docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent dbbe7be · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:docs/guide.md+4 added-2 removed
942 unmodified lines
943the "home" setting and defaults to "/".944945### res.cookie(name, val[, options])946947Sets the given cookie _name_ to _val_, with options _httpOnly_, _secure_, _expires_ etc.947Sets the given cookie _name_ to _val_, with options _httpOnly_, _secure_, _expires_ etc. The _path_ option defaults to the app's "home" setting, which948is typically "/".949950 // "Remember me" for 15 minutes 951 res.cookie('rememberme', 'yes', { expires: new Date(Date.now() + 900000), httpOnly: true });952
10 unmodified lines
963 });964965### res.clearCookie(name[, options])966966Clear cookie _name_ by setting "expires" far in the past.967Clear cookie _name_ by setting "expires" far in the past. Much like968_res.cookie()_ the _path_ option also defaults to the "home" setting.969970 res.clearCookie('rememberme');971972### res.render(view[, options[, fn]])
437 unmodified lines