• Ray Schamp's avatar
    Move permissions storage to client-side cookie · e44e958f
    Ray Schamp authored
    Instead of retrieving the permission from the session cookie, store permission data from /session/, and cache it in a cookie.  On subsequent page loads, the permission information will be retrieved from the cookie more quickly than the /session/ endpoint returns. When the session changes, the cookie and permissions state is updated to reflect the new state.
    e44e958f
permissions.js 1.59 KB