'either POST or GET
POST should have a settings parameter'

def session_store(self, request):

    if (not request.user.is_staff):
        return HttpResponse(json.dumps(''), content_type='application/json')
    if (request.method == 'POST'):
        request.session['cms_settings'] = request.POST['settings']
        request.session.save()
    return HttpResponse(json.dumps(request.session.get('cms_settings', '')), content_type='application/json')
