Hi,
I have a web running with django 1.3 + apache  + wsgi.
I am having some problems with sessions. They randomly expire and I
can't see any pattern in the logout.

Sometimes the session doesn't log out because of expire date. This is
the intended behaviour, the expiere data is 2 weeks:
        
        from django.contrib.sessions.backends.db import SessionStore
        from django.contrib.sessions.models import Session
        s = SessionStore()
        s.save()
        s2 = Session.objects.get(pk=s.session_key)
        print s2.expire_date

        2011-10-21 04:40:52.868112  >>> 2 weeks after now

Sometimes I can login one day in the web page, close the browser, access
to the web page next day and I am still logged in.

But in other occasions when browsing through the web site the session
randomly expires and I have to log in again. This happens quite often
when I'm browsing. I have tried to reproduce the behaviour, but I
haven't been able to do it, sometimes it happens in one page and
sometimes in another.

I am using default configuration for the session, I am using the
database engine without any change in session settings.

I guess that you would need some more info to figure out what is
happening but I don't know what to send. Tell me what you need and I
will send it:)

Thanks in advance

Peio Ziarsolo








-- 
Peio Ziarsolo
COMAV's bioinformatics & genomics    http://bioinf.comav.upv.es
Instituto Universitario de Conservacion y Mejora de la Agrodiversidad
Valenciana (COMAV)
Universidad Politecnica de Valencia (UPV)
Edificio CPI (Ciudad Politecnica de la Innovacion), 8E
46022 Valencia (SPAIN)
Tlf.:+34 963877000 (ext 88473)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to