def set_session_data(storage, messages):
    storage.request.session[storage.session_key] = messages
    if hasattr(storage, '_loaded_data'):
        del storage._loaded_data
Sets the messages into the backend request's session and remove the
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/messages/tests/session.py/set_session_data