You need to update the users information in the browser. Try the below.
It clears any current information stored in the users profile and
reloads it after successful login.$(document).ready(function() {
if(userName && password) { if (CQ_Analytics) { if
(CQ_Analytics.ProfileDataMgr) { //Clear the current profile
CQ_Analytics.ProfileDataMgr.clear(); } } $.ajax({ type:'POST', url :
path[0]+"/j_security_check", data: { j_username: userName, j_password:
password, j_validate:"true" }, success: functio...