Save session in cookie & localstorage