Replaced cookieStore with localstorage and sessionStorage

Its not a good design to use cookieStore for session related data.
Better to use localStorage and sessionStorage