Hi,
I want to have a button to trigger a session logout? Is this possible?
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
you can trigger logout by going to the following web link (either using ordinary link or button or whatever you like, you can even type it in address bar when you're logged in and follow the link):
/web/session/logout
here you can use redirect argument in order to specify where user should be redirected after logout:
/web/session/logout?redirect=/web
here is ordinary html link example:
<a href="/web/session/logout?redirect=/web">Logout</a>
you can use similar approach in button as well... there is multiple possibilities to implement this, adapt it per your requirements.
Yes. It working fine. Great ......,
You can also trigger logout in controllers with the method:
request.session.logout()
| 関連投稿 | 返信 | ビュー | 活動 | |
|---|---|---|---|---|
|
1
5月 25
|
1962 | |||
|
0
2月 22
|
3873 | |||
|
2
1月 22
|
4238 | |||
|
2
1月 22
|
5244 | |||
|
1
10月 15
|
13440 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.