i meant in servletcontext scope. when the session begins store the logged username as servletcontext level scope variable .. for every new user login .. check if the user already exists and prevent him from loggin again. make sure to delete the user when the session ends!
In continuation with the session management, I open browser and log into my application. After that i open another browser and try to log-in again. Will the session.isNew() return true/false when i try log-in from the different browser.
yes i will take care of removing the of removing the user from the servlet context when the session is over.Another doubt,if a user is logged in, and he closed the browser without logging out. In that case the session will be still active.If the same user opens a new browser and tries to login again(assuming that the session is still active), will he get a new session/old session,assuming cookies are enabled in the browser and still not deleted.
i have not reached filters till now and no idea how filters work.
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
A wop bop a lu bob a womp bam boom. Tutti frutti ad: