I am currently working on FilterChain and this is my chain scenerio:
1) Session: Check if session exist 2) Authenticate: if Session response fail, check if post is set. If post detect, do login else ignore and allow chain to continue; 3) other chain etc...
The problem I met above is if Authentication login succeed, I need to use back the Session (Number 1) to set a session! How do I go about this or is Filter not meant to do any business logic?