|Available in: Logi Info|| Source code name: JavaSessionCopying||Introduced in: v11.0.127|
When Info for Java is integrated with another Java application, the session variables are maintained in different ways. The two applications may need to copy session variables so they may be shared. Info session variables are accessed via @Session values. Java session variables are accessed via JSP or in a Java program via javax.servlet.http.HttpSession.
This JavaSessionCopying element enables session variable copying between Java applications.
There are four attributes which control which session variables are copied. These are CopyFromJavaInclude, CopyFromJavaExclude, CopyToJavaInclude and CopyToJavaExclude. Use these attributes to control which variables are copied. There is a small performance penalty for this process, so it's best to minimize the number of copied variables.
The "include" attributes are processed first, then the "exclude" attributes.
In Info versions prior to 11.0.115, almost all session variables were automatically copied. This behavior was sometimes not best for performance. To restore the previous behavior, add this element like this:
<JavaSessionCopying CopyToJavaInclude="^" CopyToJavaExclude="DebugFile,-bUsesSort$,-tra$,-xmlDef$,-Xsl$,-rdDef$" CopyFromJavaInclude="^"
This element is not used for .NET applications.