Ticket #287 (new enhancement)
Redirect Command and Function Support for http/https Redirection
| Reported by: | bklaas@… | Owned by: | peterfarrell |
|---|---|---|---|
| Priority: | minor | Milestone: | Mach-II 1.9.0 Milestone 2 |
| Component: | framework - core | Version: | 1.9.0 - Framework |
| Keywords: | redirect HTTPS secure SSL security | Cc: | kurtwiersma, mattwoodward, brianfitzgerald |
| Blocking: | Blocked By: |
Description
It would be most useful if the redirect command or function (as of Mach-II 1.8) would support an optional argument allowing redirecting between http and https.
Switching between http and https calls is common, especially in login and shopping cart scenarios. A user will need to login securely (to prevent clear-text transmission of a password), but then switch back to non-SSL activity for less sensitive transactions. Similarly, shopping cart checkout needs to occur over https, but navigating to other parts of the site does not.
This can currently be accomplished via filter or plug-in which looks for non-https events and performs a <cflocation> to a SSL-enabled page. However, if event arguments need to be persisted across the http to https redirect, event arguments are lost with the <cflocation>. Workarounds to this are possible (storing within the session scope, etc.), but are cumbersome and would be the responsibility of each developer who uses the framework.
Given that the framework can currently perform redirects which persist even complex event arguments, it would be very useful to be able to utilize this existing functionality to enable http to https redirects (and vice versa).
