I always do the redirect. If you do not, then the result for UserNotLoggedIn
(which is login) will be added to the bottom of the queue. This means the
original event (which apparently is secured) is going to run and then the
login result will run. This means an unsecured user accessed a secured
event. Clearly not optimal.


See:
http://docs.model-glue.com/wiki/ReferenceMaterials/ModelGlueXmlReference#result

*Redirect (Optional, default = "false") - If true, a redirect will
immediately redirect the entire request to the event handler declared in the
DO attribute. All state value will be maintained if session is enabled.*


DW


On Wed, Dec 15, 2010 at 2:54 PM, Matt Quackenbush <[email protected]>wrote:

> You know the scenario.  User requests a secured page but is not logged in.
> Do you....
>
> a) <result name="UserNotLoggedIn" do="login" redirect="true" />
>
> or
>
> b) <result name="UserNotLoggedIn" do="login" />
>
> ... and why?
>
> I am looking to hear/read/learn the why you do what you do.  The more one
> learns, the better off they are, and I am simply looking to expand my mind a
> bit.
>
> Thanks in advance.  :-)
>
> --
> 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]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en




-- 
Plutarch - "The mind is not a vessel to be filled but a fire to be kindled."

-- 
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