On Mon, 25 Feb 2013 13:53:27 -0800 (PST)
Jonathan Vanasco <[email protected]> wrote:

> - Stash a "session_start" timestamp in the session
> - At the start of every request, run a function to check the
> "session_start" timestamp against `now`.  if your criteria is met, you
> can invalidate the session, update the database, and redirect the
> user.
> 
> depending on how you set up your requests, i think it would be easiest
> do that within an __init__ call on a base controller if your views are
> class based, or a subscriber if they are not ( or if they are ).
> 

Thank You, I think your idea is correct, I need another opinion in case
I am serving digital contents as video streamings. How can I track the 
user watching time? Maybe Ajax? A script on the backside that monitor
the serving time?

Thx, cheers
fabio

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to