session.js icon indicating copy to clipboard operation
session.js copied to clipboard

Feature/refactor

Open HacKanCuBa opened this issue 6 years ago • 1 comments

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 var for let, 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.

HacKanCuBa avatar Oct 09 '19 05:10 HacKanCuBa

This looks good to me, thanks!

codejoust avatar May 25 '21 15:05 codejoust