Sure you can, but cookies aren't designed for it and nowadays it's better to use localStorage, which is made for the purpose.
Sure you can, but cookies aren't designed for it and nowadays it's better to use localStorage, which is made for the purpose.