Preserving HTML fragments on redirection
About this task
WebSEAL provides an example configuration of HTML redirection. This example uses cookies to store the original URL in the browser and JavaScript to later read that URL and perform the redirection. The example shows how to save the HTML fragment during an authentication operation.
In
addition to enabling HTML redirection, you must modify the JavaScript on the user interface
form (such as login.html
) to store the HTML fragment
for the subsequent redirect. The page before redirection must store
the originally requested resource, complete with HTML fragment, in
a cookie in the client web browser cookie jar. When the redirection
page returns, the example JavaScript reads
the cookie value and redirects the client to the originally requested
resource while preserving the HTML fragment.
You
can use this configuration with any of the login mechanisms for which
WebSEAL provides a login page. You must uncomment the line of JavaScript that sets the ISAMOriginalURL cookie
in the corresponding WebSEAL templates. These WebSEAL templates include: login.html
, stepuplogin.html
and certlogin.html
.
For example, to preserve the HTML fragment with forms-based authentication you must complete the following steps: