I am having problems with session
After a user selects smth from drop down menu I have to insert that value to session. I need that value to get to the database for auth tables in model (it crashes when I go to login/register form if I read from request.var). Where do I insert the value in session and how (view, controler).
For now I solved it using cookies but it is not the most secure.
Any suggestions=
thank you
session is another instance of the Storage class. Whatever is stored into session for example:
can be retrieved at a later time:
In other words, it's already there - just assign variables to it.. If you wish to use the database you have to define a session table in your DB through model. Quote from web2py manual: