t_ravichandu
04-16-2004, 08:38 AM
hi,
lemme explain in detail
in my webapplication with a username only one can login at a time. so when a user logs in i insert that userid in backend so that when any one tries to login with the same name i can giv a msg sayin some one else has logged in with that userid. when the user logsout(clicks on logout link or closes the page) i'l remove the entry from backend. When the user clicks on logout link every thing works fine. But when he closes the window it's giving unexpected things. when the user closes the window i'm writing javascript for onUnload. In that i'm writing the following code
window.open('logout.jsp', '_blank');
this works well when the user closes the window after the first login but this is not working when the user relogins by using the relogin link(which i'm providing after the logout). The jsp which i'm opening is giving a msg saying login success but the row in backend table remains same and i found an enigmatic thing that the code in scriptlet is not working except the out.print.:confused:
pls help me
chandu
lemme explain in detail
in my webapplication with a username only one can login at a time. so when a user logs in i insert that userid in backend so that when any one tries to login with the same name i can giv a msg sayin some one else has logged in with that userid. when the user logsout(clicks on logout link or closes the page) i'l remove the entry from backend. When the user clicks on logout link every thing works fine. But when he closes the window it's giving unexpected things. when the user closes the window i'm writing javascript for onUnload. In that i'm writing the following code
window.open('logout.jsp', '_blank');
this works well when the user closes the window after the first login but this is not working when the user relogins by using the relogin link(which i'm providing after the logout). The jsp which i'm opening is giving a msg saying login success but the row in backend table remains same and i found an enigmatic thing that the code in scriptlet is not working except the out.print.:confused:
pls help me
chandu