Using URL rewriting for session management
Recommended action: Use cookie-based session management.
URL rewriting manages sessions by appending unique session IDs to all links and redirects returned to the browser, allowing the server to identify users without cookies. This method is incompatible with HCL Commerce dynamic caching; therefore, you must disable caching if you enable URL rewriting. To ensure links are rewritten correctly, you must use JSP pages for display purposes, as static HTML files are not supported. Because session IDs appear in the URL string, instruct users to log off at the end of their visit to prevent unauthorized access to session data through browser history.
Browsers and e-commerce sites use HTTP to communicate. HTTP is a stateless protocol, which means that each command is run independently without any knowledge of the commands that came before it. Because it is a stateless protocol, sessions must be managed between the browser side and the server side.To use URL rewriting, HTML files (files with .html or .htm
extensions) cannot be used for links. To use URL rewriting, JSP pages must be used for display
purposes. A session with URL rewriting expires when the customer logs off.
Because URLs returned to the browser contain session IDs, another user with access to the browser history (for example, on a shared computer) might gain access to sensitive information exchanged during a session - if the session is left active. To prevent such unauthorized access, site developers can add a notice to their site to tell customers to always log off at the end of their visit so that their session ends, particularly on a shared computer.