ADF -->FacesContext.getCurrentInstance().getExternalContext().getSessionMap().remove Not working

srujanmiryala
srujanmiryala used Ask the Experts™
on
In ADF, the below statement does not remove an object from Session map

FacesContext.getCurrentInstance().getExternalContext().getSessionMap().remove("#{key}");

Values are not getting removed from the session.

Any clues on why this happens.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
HttpSession session = (HttpSession) FacesContext.getCurrentInstance()
        .getExternalContext().getSessionMap().get("#{key}");

syso(session);
session.removeAttribute("#{key}");

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial