hi to all.
i have a simple web application that i used than spring security wihtin it after
before using than spring security, after a user registering,i set some of necessary
information of user in session and lead user directly to homePage.
in homePage smoe of attribute checked in session and based on this attribute vaues,
some menu or etc showed to user, or in login page(when user logined to system), I show(for example)
and therefore when user press Logout link or button, i invalidating him or her session.
but now i have a problem.
after i use than spring security, management of users sessions is handeled by Spring security.
ok its not any problem.
my question is how can i after a user registered to system, added him or her session to SecurityContextHolder?
is it true method that when user registration done successfully, adding him or her sesssion to SecurityContextHolder?
maybe somebody say that i can lead user to login page.
but i want to send user to homePage after a successfull registration.