Replaced cookieStore with localstorage and sessionStorage

Its not a good design to use cookieStore for session related data.
Better to use localStorage and sessionStorage
Merge pull request #9 from tarunbhardwaj/task-4744

Replaced cookieStore with localstorage and sessionStorage