OK, so we have a cache that stores User data into Redis. When the user logs in an entry is put there from a SimpleSession. The problem is it only adds
hgetall "3fff8a86-23d8-4d41-92a1-0f8069848951" 1) "startTimeStamp" 2) "1366680069297" 3) "host" 4) "127.0.0.1" 5) "sessionID" 6) "3fff8a86-23d8-4d41-92a1-0f8069848951" 7) "timeOut" 8) "1800000" 9) "lastAccessTime" 10) "1366680069297" That entry occurs within subject.login() Which is calling my Cache implementation class. But SimpleSession which gets passed into my Cache implementation doesn't have userID, or username or any Principal information, which I have to get into that entry in Redis, and for the life of me I cannot figure it out. Why would Session caching have anything to do with login() it should be done right after login() but not till I add stuff to the SimpleSession attributes property, with currentUser.getSession() All I want is when someone logs in, I can add an entry into Redis where the key is the sessionID, and the values are what you see plus other values I have stored in Postgres for the user. login() should get that data from Postgres, then the session Cache should add the entry to Redis. But it doesn't appear to be working that way. Thanks Mark -- View this message in context: http://shiro-user.582556.n2.nabble.com/I-am-missing-something-in-Cache-understanding-tp7578652.html Sent from the Shiro User mailing list archive at Nabble.com.
