Persisting values in preHandler?

Is it possible to persist values set in the preHandler method?

In my preHandler, I'm checking for the existence of a cookie
(getPlugin("CookieStorage").exists("user")), and if it does, I set a
couple of things, one of which is rc.isLoggedIn = true. BUT, since
preHandler doesn't explicitly set an event or nextEvent, I don't know
how to persist that setting so it's always available in my views.

How can this be done? Or is there a better way?

Thanks!

Rob

Show us the code.

If you are doing

Var rc = event.getCollection();
Rc.isLoggedIn = (getPlugin("CookieStorage").exists("user"));

Then it is in the RC for the entire request.

Regards,
Andrew Scott
http://www.andyscott.id.au/

From: coldbox@googlegroups.com [mailto:coldbox@googlegroups.com] On
Behalf Of RobG
Sent: Tuesday, 22 February 2011 7:29 AM
To: ColdBox Platform
Subject: [coldbox:8203] Persisting values in preHandler?

Is it possible to persist values set in the preHandler method?

In my preHandler, I'm checking for the existence of a cookie
(getPlugin("CookieStorage").exists("user")), and if it does, I set a

couple of

things, one of which is rc.isLoggedIn = true. BUT, since preHandler

doesn't

explicitly set an event or nextEvent, I don't know how to persist that

setting