Hi Jury,

As the release notes indicate, there was some conversion code in place to
help make this transition; however, that code was removed in the 1.4
release. This means you have two options:

 1) Run your site for a while on Django 1.3 before upgrading to 1.5, where
"a while" is the length of SESSION_COOKIE_AGE. This will give enough time
to ensure that old cookies are updated to the new signed format.

 2) Write a custom session backend that re-introduces the old fallback. If
you get the 1.3 codebase, the conversion code is all contained in the
decode() method of django.contrib.sessions.backends.base.py; it's a
relatively simple fallback mechanism which shouldn't be too hard to add
back to a custom session backend. Once SESSION_COOKIE_AGE has expired,
you'll be able to remove this custom backend, and go back to the normal
session backends.

Yours,
Russ Magee %-)

On Mon, Dec 17, 2012 at 12:28 PM, Jury Gerasimov <j...@softshape.com> wrote:

> Hi all,
>
> we're migrating from Django 1.2 to 1.5, and we've fixed all the
> compatibility issues except one. It's "Compatibility with old signed data"
> https://docs.djangoproject.com/en/dev/releases/1.4/#compatibility-with-old-signed-data.
> In short, it drops users sessions and forces them to re-login. We cannot
> drop all the sessions on the website up and running.
>
> So is there any idea how to convert sessions from 1.2 format to 1.5
> without losing them?
>
> Thank you,
> Jury.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/m5_1fjcgSQoJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to