my first thought would be to create an event-type to apply to any  
pages you want secured by ssl. in that event-type broadcast a message  
in the before block to check if https is used and if not redirect  
accordingly.

so as long as your login form is loaded on https a relative action  
like index.cfm?event=login.process will submit to https

if you want to switch them back to http after a successful login you  
can simply redirect in the controller, not very elegant but smple.  an  
alternative might be to set a flag in the event to indicate whether  
http or https is required for the subsequent result and run a check,  
maybe in an onRequestStart message-listener to redirect the request.

seems like a common task, maybe MG needs a way to handle this,  
possibly an action pack?






On 22 Dec 2009, at 06:28, David Mineer <[email protected]> wrote:

> How can I force my login page to be https but default the rest to  
> regular old http?
>
> -- 
> David Mineer Jr
> ---------------------
> The critical ingredient is getting off your
> butt and doing something. It's as simple
> as that. A lot of people have ideas, but
> there are few who decide to do
> something about them now. Not
> tomorrow. Not next week. But today.
> The true entrepreneur is a doer.
> -- 
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to