Some FW actino in OnSessionEnd?

18 views
Skip to first unread message

Martin Baur

unread,
Feb 26, 2012, 9:56:40 PM2/26/12
to framew...@googlegroups.com
Hi there

I am wondering if it's possible to kick a fw controller/service on the
OnSessionEnd event.

We have an app that wants to keep track of what the user was doing last ...
even if he does not deliverately log out ... but just let the session
timeout.

I have a service user_mgr which does all user-related stuff as a nice
service.

I have a controller / action auth.login(), auth.logout() ... explicit logout
saves the user's session options to the db using the service. Everything is
still there to be saved upon session timeout .. but there is no request ...

Can I still achieve my goal using FW's capabilities?

If so, how?

Thanks for hints

Martin

Sean Corfield

unread,
Feb 28, 2012, 9:53:27 PM2/28/12
to framew...@googlegroups.com
On Sun, Feb 26, 2012 at 6:56 PM, Martin Baur <marti...@mindpower.com> wrote:
> I am wondering if it's possible to kick a fw controller/service on the
> OnSessionEnd event.

No. Controllers are tied to requests. No request is active when
onSessionEnd() fires.

Use services directly instead.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

Reply all
Reply to author
Forward
0 new messages