3 ms·
FWIW, that's exactly how it works in client-side browsers scripting. document.cookie = 'name=value';
by paulddraper 8y ago
FWIW, that's exactly how it works in client-side browsers scripting.
document.cookie = 'name=value';
- gcb0 8y agoclient side cookoes are already inherently unsafe. on the server, the chance that your cookie is for auth is high, so make a secure cookie the defaul. force http headers that say server only, etc. Then allow for the security to be dropped via the extra arguments, not the other way around.