Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Securing the cookie

By default the secure flag of the session cookie is enabled since release 15.13 and onwards. In earlier versions, the property was disabled by default.

Disabling the secure session cookie from Blueriq version 14.7 onwards can be done by configuring the following property:

Code Block
languagetext
titleapplication.properties
blueriq.session.cookie.secure=false


In older versions it was possible to enable the secure session cookie setting with an environment variable with the value:

Code Block
languagetext
BLUERIQ_SECURE_SESSION_COOKIE=true


This option is removed in Blueriq 15.

Note

Securing the cookie should take place on the same location where the SSL offloading is done. The reason behind this is that it is not possible to send a cookie with the secure flag set over an unencrypted HTTP request. For example, if the SSL offloading is done by the loadbalancer, the secure flag should be disabled from there on as requests to the runtime are over an unencrypted HTTP request.

The only use case to enable the secure flag as specified above is when offloading takes place on the application server where the Runtime is deployed.


Timeout

In this section we will present explain how to set the session timeout depending on the which Blueriq Runtime you are using. (Java or .NET version)

Java Runtime

In the Java Runtime the way of defining the session timeout differs between R10 and R9 or older versions.

...

For R10 we benefit of various spring boot Spring Boot common properties that can be specified inside bootstrapapplication.properties or it can be given as a VM argument.

Code Block
languagexml
linenumberstrue
server.session.timeout=1200 # Session timeout in seconds.
Info

If you are upgrading from R9 to R10 pay attention to the session timeout measurement unit. If in R9 or older versions, the value is specified in minutes, in R10 the value is specified in seconds.

 

.NET Runtime

In the .NET Runtime there is no difference in in the way of specifying the session timeout between R10 and R9 or older versions. 

The value in minutes is specified in Web.config under <system.web> tagIn R11 Spring renamed this property to:

Code Block
languagexml
linenumberstrue
<system.web>
 <sessionState timeout="20" />
</system.web>server.servlet.session.timeout=1200 # Session timeout in seconds.