I have a textarea box, on clicking which the login box appears. When the user enters his login credentials successfully,the page gets refreshed.
But on clicking the textarea box again(when the user is already in session), the login box appears again.
How to disable this onclick functionality when the user is already in session. I am using onclick operation to pop up the login box and want to disable it when the user is already in session.