javascript - Preserving URL fragment through CAS sign-on -
i maintain single-page application uses yui 2.8 history module retain local options in url fragment. i've put behind cas authentication, , i'm finding fragment gets lost during cas authentication. retained in signon url, not when redirected application page. true after session timeouts, users bumped default options after re-authentication.
any suggested strategies hanging on fragment (or underlying javascript state) though cas roundtrip?
you can store in cookie, sessionstorage, or value of window.name if there no security implications:
//cookie document.cookie = "fragid=" + window.location.hash + ";path=/"; //session storage window.sessionstorage.setitem("fragid",window.location.hash); //window window.name = window.location.hash references
Comments
Post a Comment