How to create a session only cookies with JavaScript?
Answers
Answered by
0
Answer:
We all know that in PHP, to set a session only cookie, all you need to do is leave the expire parameter blank or set it to ZERO (0). Of course we always need to set the path to “/” in most cases. However, it is quite different when it comes to JavaScript. The syntax for setting up cookie in JavaScript is simple.
Similar questions
Math,
6 months ago
Math,
6 months ago
Computer Science,
11 months ago
Economy,
11 months ago
Chemistry,
1 year ago