S
smita
Hi,
I have a small problem...Please go through it and share your views on
it.
I am using an xml file to authenticate my users. Also for each user i am
maintaining a attribute named "status" which holds the logged in information
i.e. if the user has logged in then the staus will be "LoggedIn" else it
will be "LoggedOut". Now this helps me to detect that the same user does
not login twice. if he has already logged in then the status will be
LoggedIn, so if he tries to login the 2nd time i tell him that he needs to
logout.
Now, the problem is that i change the status to "LoggedOut" only when he
logsout using the LOGOUT button. But if he just closes the browser and ends
the application without logging out through the LOGOUT button then i want to
log him out explicitly when he closes the browser. I am not using
sessions...but i have a hint that this may require the use of sessions.
Can't i solve this problem without using Sessions. i.e. Is it possible that
i get some message when the user ends the application by closing the
browser, so using that message i can log him out explicitly.
Please help...
regards,
Smita.
I have a small problem...Please go through it and share your views on
it.
I am using an xml file to authenticate my users. Also for each user i am
maintaining a attribute named "status" which holds the logged in information
i.e. if the user has logged in then the staus will be "LoggedIn" else it
will be "LoggedOut". Now this helps me to detect that the same user does
not login twice. if he has already logged in then the status will be
LoggedIn, so if he tries to login the 2nd time i tell him that he needs to
logout.
Now, the problem is that i change the status to "LoggedOut" only when he
logsout using the LOGOUT button. But if he just closes the browser and ends
the application without logging out through the LOGOUT button then i want to
log him out explicitly when he closes the browser. I am not using
sessions...but i have a hint that this may require the use of sessions.
Can't i solve this problem without using Sessions. i.e. Is it possible that
i get some message when the user ends the application by closing the
browser, so using that message i can log him out explicitly.
Please help...
regards,
Smita.