Fixed #10899 - Manipulate Session with test Client

Thanks to prestontimmons for the initial patch. https://code.djangoproject.com/ticket/10899