orientechnologies / orientdb-studio

Studio web tool
Other
127 stars 50 forks source link

can we adjust the session timout duration? #529

Closed tolgaulas closed 5 years ago

tolgaulas commented 5 years ago

I like to increase the session timeout duration, is it possible through config files etc?

Thanks.

luigidellaquila commented 5 years ago

Hi @tolgaulas

Studio uses OrientDB REST API, you can configure the server with a different timeout, see https://orientdb.com/docs/3.0.x/misc/OrientDB-REST.html#authentication-and-security

Thanks

Luigi

tolgaulas commented 5 years ago

Thanks @luigidellaquila. There are so many time out and I am guessing its network.http.sessionExpireTimeout and the command as instructed in the link document

http://server:port/server/configuration.network.http.sessionExpireTimeout/1800

gives the below error:

{
  "errors": [
    {
      "reason": 405,
      "code": 405,
      "content": "Command not found: server/configuration.network.http.sessionExpireTimeout/900"
    }
  ]
}
tolgaulas commented 5 years ago

By the way I've just noticed, the network.http.sessionExpireTimout's canChange value is false..

luigidellaquila commented 5 years ago

hi @tolgaulas

Try to set it on startup, adding the following to the command line:

-Dnetwork.http.sessionExpireTimeout=1800

This should do the trick

Thanks

Luigi

tolgaulas commented 5 years ago

Yes, it works! :)

Thank you very much @luigidellaquila