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 > interval (30 minutes,...) passes between visits. > > In order to keep track of the last visit, I use the sessions > middleware, and i keep in memory the last visited date. > > The problem is, I modify my request.session in the middleware, but the > value does not seem to be kept in memory. I've tried several > solutions, but I can not understand what I am doing wrong. Any help > appreciated.
It's not clear (to me) what you mean here by "keep in memory". What are your expecting to be kept in memory? What are you actually seeing happen? I'm having trouble understanding what you are wanting your code to do, so it's a bit hard to point to where the problem might lie. Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---