I am trying to redirect to a URL('form','results') from forminput.html with parameters (in my case, it's a huge dictionary i.e. output). But when the web page is redirected to results.html, all the parameters are also included in the web Url itself, which what we don't want for two reasons, security and lenthy type of urls.
Can you help me in this scenario ?
Thanks in advance
/*this my controller, form.py*/
my_funct():
out_dict=dict() // out_dict is a huge dictionary with 100 of keys and values
return out_dict
define forminput():
outout=my_funct()
redirect(URL('form','results', vars= dict(out=output)))
define results():
data=request.vars['out']
You can instead store the data in the session (which remains on the server):
define forminput():
session.data = my_funct()
redirect(URL('form', 'results'))
define results():
data = session.data