Configuring session-related parameters in resin

Source: Internet
Author: User

"Go" persistence (storage) of the session about resin (i)Encountering the Project menu easy to appear after 30 minutes the timeout page time-out, prompting the user to re-login problems, has been found in the Project Profile Web. config. config. However, user feedback occurs every 30 minutes. Check the server configuration resin.conf the timeout parameter for the session has not been configured. Values in the following materials if the server is not configured then the default session-timeout is 30 minutes, and if server configuration resin.conf and project configuration Web. XML is configured with timeout, the server configuration has the highest priority.

The session configuration example for resin is as follows, session persistence configuration:

<session-config>
<session-max>16686</session-max>
<session-timeout>40</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>true</enable-url-rewriting>
<file-store>WEB-INF/sessions</file-store><!--Storage Location--
<always-load-session>true</always-load-session>
</session-config>

the other configuration parameters of the Session-config are as follows .

Session-config
Attribute meaning Default
Session-timeout The session timeout in minutes Minutes
Session-max Maximum Active Sessions 4096
Enable-cookies Enable Cookies for sessions (resin 1.1) True
Enable-url-re Writing Enable URL rewriting for sessions (resin 1.1) True
Cookie-version Version of the cookie spec for sessions (resin 1.2) 1.0
Cookie-domain Domain for session cookies (resin 1.2) None
Cookie-max-age Max age for Persistent session cookies (Resin 2.0) None
Cookie-length Maximum length of the cookie. (Resin 2.1.1) Integer.max_value
File-store Persistent sessions using a file Store (resin 1.2) None
Jdbc-store Persistent sessions using a JDBC store (resin 1.2) None
Tcp-store Persistent sessions using a distributed ring (resin 1.2) None
Always-load-session Reload data from the store on every request (resin 1.2) False
Always-save-session Save session data to the store on every request (resin 1.2) False
Save-on-shutdown Only save session is application shuts down. (Resin 1.2.3) False
Reuse-session-id Reuse the session ID even if the session has a timed out. (Resin 2.0.4) True
Ignore-serialization-errors When persisting a session, ignore any values which don ' t implement java.io.Serializable False

1, the first format is the format in the example

2, <session-config session-timeout= '/><!--session-timeout for properties--

3,<session-config>
<session-timeout id=120/>
<session-max id=4096/>
</session-config>



Configuring session-related parameters in resin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.