Computer Science, asked by lalu4405, 11 months ago

How to create a session only cookies with JavaScript?

Answers

Answered by prrangton956oxinf3
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