Skip to Content
Menu
This question has been flagged
2 Replies
4664 Views

Hi

i am using Odoo 12 an i need to check if user is logged in or not in website side ( not web side )

is there a way to do this?


Avatar
Discard
Best Answer

Hi,

If you are inside the controller, you can check like this:

if request.session.uid:

Thanks

Avatar
Discard
Author Best Answer

Yes That was it.

Thank You <3

Avatar
Discard
Related Posts Replies Views Activity
3
Sep 25
2146
3
Oct 25
149265
1
Sep 25
1306
4
Sep 25
6043
2
Aug 25
1321