Hi,

I have a medium-traffic django site (maybe 20000 page views a day) and
I am having a problem with users trying to log into the site.

I am using the django view for logging in and logging out
(django.contrib.auth.views.login).  For some reason and only with some
users running IE7, they have to clear their form cache before they can
log in to the site or they get the error "Looks like your browser
isn't configured to accept cookies. Please enable cookies, reload this
page, and try again."

Once the user clears his or her form history and reloads the page,
they can log in just fine.

It seems like if the user has a form history of the login page, the
test cookie is not set for some reason.  Also, this occurs for these
users if I attempt to log into the Django Administration app with my
user name and password from their computer.

Is there a way I can fix this?

Some relevant settings:

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.cache.CacheMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
    'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
)

SESSION_COOKIE_DOMAIN=".mydomain.com"

CACHE_MIDDLEWARE_SECONDS = 1500
CACHE_MIDDLEWARE_KEY_PREFIX = ''
CACHE_BACKEND = "file:///data/cache"
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True

Thanks,

Joe


--~--~---------~--~----~------------~-------~--~----~
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