SyntaxFix
Write A Post
Hire A Developer
Questions
A session is stored server side, you can't modify it with JavaScript. Sessions may contain sensitive data.
You can modify cookies using document.cookie.
document.cookie
You can easily find many examples how to modify cookies.