Seems to be working better now, not getting logged out after every page refresh. Thank you Dimas, and Happy New Year too!