Copilot commented on code in PR #276: URL: https://github.com/apache/shiro-site/pull/276#discussion_r2703702483
########## src/site/content/troubleshooting.adoc: ########## @@ -0,0 +1,514 @@ += Troubleshooting & FAQ +:jbake-date: 2026-01-18 00:00:00 +:jbake-type: page +:jbake-status: published +:jbake-tags: documentation, troubleshooting, faq +:idprefix: +:icons: font +:toc: + +This page covers common issues that users encounter when configuring and using Apache Shiro. Each section provides practical solutions and debugging tips to help you resolve problems quickly. + +== Session Management Issues + +=== Why do my sessions expire too quickly? + +By default, Shiro sessions have a 30-minute timeout. If your sessions expire faster than expected, check your `SessionManager` configuration. + +You can adjust the global session timeout in your `shiro.ini`: + +[source,ini] +---- +[main] +# Set session timeout to 1 hour (in milliseconds) +securityManager.sessionManager.globalSessionTimeout = 3600000 +---- + +For Spring Boot applications, you can configure this in `application.properties`: + +[source,properties] +---- +shiro.sessionManager.globalSessionTimeout = 3600000 +---- + +Also verify that your application is calling `session.touch()` when needed for long-running operations, particularly in RIA (Rich Internet Application) scenarios. Review Comment: The abbreviation "RIA" (Rich Internet Application) is used without prior definition in the document. While this may be familiar to some readers, it would be more accessible to either spell it out on first use or provide a brief explanation, especially since this is in a troubleshooting FAQ meant to help users of varying experience levels. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
