Re: Adding a value to the request.session in a middleware

2006-07-06 Thread Guillermo Fernandez Castellanos
Ok, my fault. Here is what I want to do: I want to keep track of the users that visit my site, keeping in the DB what IP addresses visited my site, when, ... I define a visit as a click on one of my pages, given that this visit is done a certain time after the last visit (30 minutes, 1 hour, 1 d

Re: Adding a value to the request.session in a middleware

2006-07-05 Thread Malcolm Tredinnick
On Wed, 2006-07-05 at 14:20 +0200, Guillermo Fernandez Castellanos wrote: > Hi, > > I am programming a middleware that keeps track of the visits made to > my webpage. I keep track of the IP addresses and I add to this a Visit > each time a user comes back. I consider a visit is new when a given >

Adding a value to the request.session in a middleware

2006-07-05 Thread Guillermo Fernandez Castellanos
Hi, I am programming a middleware that keeps track of the visits made to my webpage. I keep track of the IP addresses and I add to this a Visit each time a user comes back. I consider a visit is new when a given interval (30 minutes,...) passes between visits. In order to keep track of the last