I have a search view that saves some data in a session for another view:
if request.method == 'POST':
form = SearchForm(request.POST)
cd = form.cleaned_data
request.session['data'] = melk
request.session['form'] = form
melk_list = request.session['data']
form = request.session['form']
It works fine in Chrome. But when I use Firefox, it works fine the first time, but after that each search keeps returning my first result! It seems request.session doesn't change after the first time. I tried to delete the session with del request.session['data'], but that didn't work.
My session backend is a database, but Firefox makes a session cookie. How can I solve this issue?