I have cb and i want my users to login to the site but they will stay in the same page and only the specific div will be refreshed and they will be logged in
i know there is a way to do in in ajax but i havent found a way in google and in here and i dont want to mess with the code too much as everything works well now.
I don't know if i understand what do you mean
but in Cb Login module there is a Login Redirection URL parameter that you can set to redirect wathever you want.