contrib.sessions.models has incompatible or extraneous code
|Reported by:||PaulM||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
`contrib.sessions.models` has a couple methods that seem outdated and extraneous.
The specific problem methods are SessionManager.encode() and Session.get_decoded(). They definitely duplicate functionality (at a copy-paste level) now found elsewhere. I think these may be vestigal, but I haven't fully investigated. Someone more familiar with the sessions framework might want to take a look.
If these are still in use somewhere, they need to be updated to match their new, higher security analogs in contrib.sessions.backends.base.