Redis Session Storage on Azure Redis Cache not working

Running into an issue with using Redis as my session storage and Azure Redis Cache.

Using the Redis Extension v3.0.1.0

<cfset this.sessionCluster  = true />
<cfset this.sessionStorage = "redisStorage" />
<cfset this.sessionType  = "jee" />

the redisStorage does verify correctly in the Lucee admin

In the Azure Cache for Redis admin side, it shows no gets/sets coming over.

When doing a redis command

<cfset result = RedisCommand(
arguments = ["PING"],
cache = "redisStorage"
)>
<cfoutput>#result#</cfoutput><br />

<cfset setResult = RedisCommand(
    arguments = ["SET", "testKey", "Hello from Lucee!"],
    cache = "redisStorage"
)>
<cfoutput>SET Result: #setResult#</cfoutput><br />

<cfset getResult = RedisCommand(
    arguments = ["GET", "testKey"],
    cache = "redisStorage"
)>
<cfoutput>GET Result: #getResult#</cfoutput><br />

Returns

PONG
SET Result: OK
GET Result: Hello from Lucee!

And in the Azure admin side, I can see the set and get come through.

So that works… but trying to use it for the session itself doesn’t work… what else can I try out?

Don’t forget to tell us about your stack!

OS: Windows Server 2022 Datacenter
Java Version: 21.0.6
Tomcat Version: 10.1.36
Lucee Version: 6.2.2.91

Two things I noticed immediately:

  1. Shouldn’t sessionType be “j2ee” instead of “jee”?
  2. The Application.cfc documentation says the following about j2ee sessionType: ’ “j2ee” can not use a session storage.’ . That implies that, to use session storage, you need “cfml” sessionType.