In all my pages, i am using same ajax interface to list the users in database when name is typed in a search input box. All Ajax works fine, except in few jsp pages. In those
pages when i type, ajax call gets the wrong session. Due to wrong session I can't get the session values and authentication in ajax fails. But in Main page, when i do page submit, session is there. I can get session objects upon page submit.
I have no clue how to fix this issue. Almost all my ajax call working perfect with session. I checked all ajax codes are exactly the same in all the pages. I am wandering why ajax in some pages are behaving different.