[改进][API] 使登录会话超时时间可配置
The current session lifetime is a compile-time constant: `SESSION_TIME_OUT = 7200`. It is consumed in one place: `SessionServiceImpl#isSessionExpire`. There are two problems with this: 1. Operators cannot change it without rebuilding and redeploying. Deployments that need a longer session (internal tools behind a VPN, long-running review sessions) or a shorter one (shared environments) have to patch the source and recompile. 2. It is declared in `dolphinscheduler-common` but only used by `dolphinscheduler-api`. Because it is a `static final int`, it is inlined into `SessionServiceImpl` at compile time, so editing the constant alone is not even sufficient - `dolphinscheduler-api` must be recompiled too. That is an easy trap for anyone attempting a quick patch. A secondary consequence: `dolphinscheduler-common` is a shared jar across master/worker/alert/tools, so changing a constant there forces all of those services to be replaced for what is really an API-only concern.
内容来源: apache/dolphinscheduler