session.js
session.js copied to clipboard
Feature/refactor
Several changes to the library:
- Refactor demo and debug pages
- Fix missing character encoding and html lang tag. Refactor code structure and missplaced elements.
- Change script source for session.js to run locally.
- Refactor session.js
- Massive refactor to polish the code removing unused bits, changing
varforlet, fixing insecure http protocol for https and fixing architecture module that was broken because of a missnamed variable. Rename cookie to a more significative name:session-js. - Add extra client tracking with on/off switch
- Create a switch named extra that when set records extra client information. It was added from the demo page.
- Add a tracker property
- This property allows to track the session from external libs or a backend. Once set, it will be written to the session and kept in the cookie.
- Massive refactor to polish the code removing unused bits, changing
This looks good to me, thanks!