Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
10 Trả lời
55310 Lượt xem

Hello,

i keep getting the message ''Odoo Session Expired''. I have no idea why. I restarted my local instance/server but this didn't solve the problem.


What can I do? 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Here is what solved my problem:

Turn the developer mode on.>>>>>Go to Settings>>>>>TEchnical>>>>>System Parameters

Search for "report.url". Check this. This should match URL of your Odoo instance.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

For anyone else that has this problem - it is most likely caused by having multiple Odoo tabs in your browser logged in as different users. This was my problem anyway.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

This will definitely work for you.

Turn the developer mode on.>>>>>Go to Settings>>>>>TEchnical>>>>>System Parameters

Search for Web.base.url. Check this. This should match with the IP you used to run the system. If this doesn't match, your session will get expired.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I solved the problem just replacing "localhost" with 127.0.0.1 (this was in fact the IP presents in "System parameters", thanks DonferaRRi for the hint)

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Session ends in approx. 5 minutes. Until today I had no such problems even if I worked logged in for days.

If you suggest me to check the code, can you please provide me instructions how to do that please?

Ảnh đại diện
Huỷ bỏ
Tác giả

After days I found out that this happens when I use web designer to design quotation templates. Whenever I try to print the edited/designed quotation, I get a message Session Expired. Is this pattern a useful information? Restarting server and refreshing doesn't help.

Tác giả

Still no solution for that. My customer uses custom quotation design and edits templates all the time. But when my customer wants to see a quotation in pdf, an error appears ''Session has expired''. I have 2 servers. This problem occurs only on 1 server. You think that an upgrade would solve this problem?

Câu trả lời hay nhất

If you dont use any thing in Odoo Session (its idle state),then the session Time out Message is coming after a particular time (based on session time out code,make the changes in the session time out code).Then this issue may solved.

Change your Session expired Time

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Solution?


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,

Please try refresh page after server restarted.

May be this will help you.

Thanks.

Shamji.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Have you made any changes in code recently ?

Sometimes when changing modules or code in modules it kick me out, but after relog (without server restart) everything works fine.

Clear browser history (temps)


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I have this problem on the SaaS online version, and it can happen within seconds. Very frustrating.

Logging out and logging in does not solve it, on the contrary!

Here is an answer from one of the functional consultants.

This error can have 2 origins :

Either you're using 2 devices ( 2 computers or one computer and one smartphone) with your login or 2 persons are sharing your user.

I had an app on my phone. I have removed the account. Let's see what happens.

This seems to have fixed the problem.

Ảnh đại diện
Huỷ bỏ
Tác giả

Active session shouldn't be a problem, because I restarter server and logged on just 1 PC and it's still the same, it says ''session has expired''. BUT this happens ONLY when I try to open a HTML edited quotation.