Finding If a Session is Valid using the Session ID
Posted on 2002-03-18
I am currently working on a web application where in
a user is allowed to edit a particular record. I will have
to restrict 2 users from editing the same record, for this
reason i am using the Session Id of the user to know which
user is editing a particular record.
I have a seperate table which stores the entries like
the record (unique identified) and the session id. Each
time a person is about to edit or delete a particular
record i go and see if that particular record is being
edited by another user.
Now the problem is if the session has expired, i don't
have a control of the record which i had created. So if
another user tries to update or delete he is still not able to edit or delete that particular record.
Now i have the Session Id of the user who started
editing that particular record, now i will have to find
out if the session is valid.
Can any one help me out to solve the above problem.
I am current using tomcat 3.2.3 on Red Hat Linux .
any other user