Hi experts , I am having small application which consists of login page , action page and log out page. if login correct it shows the name of user in action page , then if user click logout button he goes directly to logout page. The thing is I use session with new login and invalidate this session once user click logout Button. okey now if I have following scenario :
user log in at index page , go to action page , his name appears there , clicks logout button, end session(invalidate session) , redirects user to index page for another new login
and I use this scenario in Internet Explore whatever version is , I got the previous name (old name) for new second login (and that is should not be )within same application why is that . it needs me to close the application after logout and open it again for new login to show the new name in the action page.
if I use this scenario in FireFox or google chroom , no need to close application and open it in new window , once user is redirected again to index page he can login and new name(his name) will appear in action page( that is the correct way)
this is the code for logOut
servlet:
in my login servlet , I did this:
I make sure that my index does not contain any session using : <%@ page session="false"%>
my question why is working as perfect with Mozilla and chroom but not with IE , why do I need to close the application after logout and open it again for new login.
this was my first try , then in my second try I decided I will not use session any more , i decide to create simple text file to store the current user name, so in my login servlet will be like this:
in action page I am reading the text name in the current.txt I made it during login process and show the name .
if i use this , still the same in IE , it shows old name for new login instead of new name , although I am reading from text file.
chroom and mozilla works fine , why the problem only with IE. I really hate it...