+
+# pages/param-sets are
+# n normal non-mutating page
+# r retrieval of information for JS, non-mutating
+# m mutating page
+# u update of information by JS, mutating
+# i login
+# o logout
+
+ # Case analysis, cookie mode, app promises re mutate:
+ # cook par meth form
+ #
+ # y y GET nr fine, show page or send data
+ #
+ # y - GET n cross-site link
+ # show data
+ # y1 y2 GET n intra-site link
+ # from session no longer known to browser
+ # do not revoke y2 as not a POST so not RESTful
+ # treat as cross-site link, show data
+ # y n GET n intra-site link from stale session,
+ # treat as cross-site link, show data
+ #
+ # y - GET r bug or attack, fail
+ # y1 y2 GET r intra-site data request
+ # from session no longer known to browser
+ # do not revoke y2 as not a POST so not RESTful
+ # fail
+ # y n GET r intra-site data request from stale session
+ # fail
+ #
+ # - y GET n CLEAR COOKIES TO LOGOUT OPTION
+ #
+ # -/n any GET n cross-site link but user not logged in
+ # show login form
+ #
+ # -/n any GET r data request from stale session
+ # fail
+ #
+ # any any GET muoi bug or attack, fail
+ #
+ # y y POST nrmu mutation is OK, do operation
+ # y y POST o logout
+ # y y POST i login, redirect to GET of remaining params
+ #
+ # any - POST bug or xsrf attack, fail
+ #
+ # n/y1 y2 POST r intra-site form submission
+ # from session no longer known to browser
+ # revoke y2
+ # show "session interrupted"
+ # n/y1 y2 POST m intra-site js operation
+ # from session no longer known to browser
+ # revoke y2
+ # fail
+ # y n POST r intra-site form submission from stale session
+ # show "session interrupted"
+ # y n POST m intra-site form submission from stale session
+ # fail
+ #
+ # - y2 GET intra-site link or data request
+ # from session no longer known to browser
+ # fail
+
+ # - y2 any req from old session y2, del y2, show login
+ # y1 y2 any req from old session y2, del y2, show y1 main
+
+ # y1 any GET non-mut cross-site link
+ # y1 any GET non-mut no mutation, show page providing new par
+ #
+ # A B any page from old session or cross-site request
+ # any y2 POST logout do logout y2
+
+
+ # any any GET mutate bug or attack, forbidden, call die
+