What do you mean by "disappears entirely"? Can you just check for a null value? The reason I ask that is because if a session variable was never created and you try to access it you will get a null value. So setting it to null, then accessing it will return you the same value as if it never existed.
What do you mean by
What do you mean by "disappears entirely"? Can you just check for a null value? The reason I ask that is because if a session variable was never created and you try to access it you will get a null value. So setting it to null, then accessing it will return you the same value as if it never existed.
He's right-- If you haven't
He's right-- If you haven't set a sessionVariable at all yet, then
session.getVariable("somethingUnset")
will returnnull
anyway.I can't think of anything functionally different about
session.setVariable("varName", null)
.