Skip to content
This repository was archived by the owner on Nov 27, 2021. It is now read-only.
This repository was archived by the owner on Nov 27, 2021. It is now read-only.

Initial redisMap never stored to redis #4

@hannesstockner

Description

@hannesstockner

Hello,

I am trying to integrate your library into my current system:

  • embedded jetty (8.1.8.v20121106)
  • jetty-session-redis (2.3.ga)
  • redis (2.6.4)

By restarting the server the RedisSessionManager.loadFromStore method always returns null, because redisData.get(0) == null.

I debugged through my app and I found out that the the initial redisMap is never stored to redis:
{accessed=1361208311937, attributes={}, context=, cookieSet=0, created=1361208311937, expiryTime=1361210111, id=1q8ks6b5lyze111qrn18ah95x9, lastAccessed=1361208311937, lastNode=null, lastSaved=1361208313748, maxIdle=1800, virtualHost=0.0.0.0}

The following redis command '"HMGET" "jetty-session-1q8ks6b5lyze111qrn18ah95x9" "id" "created" "accessed" "lastNode" "expiryTime" "lastSaved" "lastAccessed" "maxIdle" "cookieSet" "attributes"' returns:

  1. (nil)
  2. (nil)
  3. (nil)
  4. (nil)
  5. (nil)
  6. "1361208416819"
  7. (nil)
  8. (nil)
  9. (nil)
  10. "{"foo":"123"}"

Do I miss something?
Thanks for your help

Hannes

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions