I have a list stored as a session variable. I want to update the list every time I make a request.
Since I didn’t find a session.update() operation. I thought of calling remove and set methods in sessions
session.remove(“reportNotifyList”)
println("Am I there ? "+session.contains(“reportNotifyList”))
val checkList = List(1,2,3,4,5)
session.set(“reportNotifyList”,finalList)
This is not working as expected . The print statement after remove() is printing true
“Am I there ? true”
I can’t find too many examples about updating session variable. Can somebody throw me some light to get past this.
Thanks in advance