Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
24686 Zobrazení

Hello, normally - in a big part of the websites where you have to log in,FOR SECURITY ,when you don't use your profile during some time , automatically your session will be expired and you will need to connect again . Why is not the same with OpenERP where I can stay for weeks without to be disconnected???anybody can touch in my database and do things inside. Isn't ? Can I (how) change that?

thank you in advance

Avatar
Zrušit

You should not have access from internet to you OpenERP server...

Development of the customer portal seems to contradict that you should not have internet access to your openERP server.

What Clément is saying is that you should expose a proxy (nginx, apache, ...) and not OpenERP.

Nejlepší odpověď

A stand-alone instance isn't the suggested way to deploy OpenERP.

By using a front-end proxy like NGINX (reverse proxy or wsgi) you can still set the timeout limit.

Have a look at the openerp-wsgi.py config file inside the server folder for instance.

here you can find useful notes: http://thu.openerp.com/open-days-2012/gunicorn.html#(1))

Avatar
Zrušit

Can you please explain howto setup a session timeout with NGINX?

correct params should be: client_header_timeout, client_body_timeout and send_timeout.

You cannot control session timeout from an http proxy. A proxy server is supposed to be stateless, it has no knowledge of when the session cookie or session url variable has been used last time. The settings you mentioned is related to closing the tcp/http session between the proxy and a misbehaving or apparently disconnected client.

you're probably right. you can set a session timeout in the wsgi openerp config file anyway

Are you sure? I checked v7.0 and could find anything regarding expiration settings. I only found that sessions will be deleted after a fixed one week period in session_gc() at openerp-web/addons/web/http.py.

Can anyone pls help me out on where I can find the openerp-wgsi.py file?

@Mohammad : it is at the root of the folder, alongside openerp-server. Check https://github.com/odoo/odoo . I also found this on another post : http://www.zbeanztech.com/blog/how-restrict-multiple-logins-user-openerp-0 .

Autor Nejlepší odpověď

Thank you very much,guys :)

Avatar
Zrušit

sadasd

Related Posts Odpovědi Zobrazení Aktivita
1
úno 25
7663
1
bře 15
5384
4
bře 15
9198
17
dub 24
58060
10
pro 23
36650