Through
$ (function () {$ ('. menu'). append ('' + a + '');}); (a - name (login))

I bring the name of the authorized user to the "navbar" (actually, after authorization), but when I refresh the page, or switch to another page of the site - the name disappears.

Please tell me how to save the name, regardless of which page I will go to !? Already no idea how to do it ..

    1 answer 1

    localStorage, sessionStorage, cookies, IndexedDB, WebSQL (I would not use)

    This is all that can be used to store data on the client (browser) side.

    Choose what you like.