How to set session and get session value in odoo 10
i have a login page , when user provides email and password and when he logged in i want to capture email address trough session
thanks in advance
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How to set session and get session value in odoo 10
i have a login page , when user provides email and password and when he logged in i want to capture email address trough session
thanks in advance
Hi,
If you want to set a value in the session , you can do it as follows,
request.session['val_name'] = valueTo access the value which set in the session,
request.session['val_name']Thanks
Hello, this is a nice concept. But I was trying to do the same thing and updating the uid,login and session_token in request.session. But I am getting logged out. Can you help me with this.
Session Data before Data Modified:
<OpenERPSession {'db': 'SAS_odootest11newscript', 'uid': None, 'login': None, 'session_token': None, 'context': {'lang': 'en_US', 'uid': 16}, 'geoip': {}, '__payment_tx_ids__': [103], '__website_sale_last_tx_id': 103, 'sale_order_id': None, 'sale_last_order_id': 108, 'sale_transaction_id': False, 'website_sale_current_pl': False}>
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.