Session in OpenERP

Asked by zaki1029 on 2012-11-11

Hi Buddies,

While doing the web client development in OpenERP 6.1, there's some requirement to pass some profile information from frontend to backend such as "user key". As these kind of information will generate every time while the user login to the system, I don't want this value to be stored in the database as persistent object. It's better to stored to a temperory variable pool and it will existe during the whole life-cycle before user log out of the openerp system.

So my concern is that is there any way in OpenERP to implement the "session" mechanism like which in PHP will look like:


I understand that OpenERP has session, but don't know how does it work actually.
Thanks a lot for advice in advance.


Question information

English Edit question
Odoo Addons (MOVED TO GITHUB) Edit question
No assignee Edit question
Last query:
Last reply:

This question was reopened

I'm not an expert, but I think you could do this with your own model that extends the user. You could save the fields in a osv_memory table (instead of the normal osv model) which gets cleaned up when needed.

Can you help with this problem?

Provide an answer of your own, or ask zaki1029 for more information if necessary.

To post a message you must log in.