Hi All, your friendly JAVA Web Application developer here with a question.
i'm trying to develop a "homegrown" HTTP Servlet based architecture ( i know there's many open source ones available) as a side project and i had this idea as a log-in/security mechanism:
on user log-in: store the HTTP Session ID in a list and save it in the Application scope ("above" the session, all server side of course). if ID is already in the list, return to log-in page (don't allow double log-ins)
on every "Submit" (HTTP request to the server) check the request's Session ID against the list. proceed if found, otherwise throw out to log-in page (disregard the performance hit, its not the issue here)
on log-out or time-out: remove the ID from the list.
the idea is to stop a hacker from just writing in the URL of a page in the application and getting access to the data, and doing it without session cookies which can be manipulated on the client side.
obviously, i take the session ID from the HTTPRequest object itself and not from a GET/POST parameter as a measure against HTTP Watchers who could easily paste the session ID in the URL line or whatever.
is this easily breakable?
i'm trying to develop a "homegrown" HTTP Servlet based architecture ( i know there's many open source ones available) as a side project and i had this idea as a log-in/security mechanism:
on user log-in: store the HTTP Session ID in a list and save it in the Application scope ("above" the session, all server side of course). if ID is already in the list, return to log-in page (don't allow double log-ins)
on every "Submit" (HTTP request to the server) check the request's Session ID against the list. proceed if found, otherwise throw out to log-in page (disregard the performance hit, its not the issue here)
on log-out or time-out: remove the ID from the list.
the idea is to stop a hacker from just writing in the URL of a page in the application and getting access to the data, and doing it without session cookies which can be manipulated on the client side.
obviously, i take the session ID from the HTTPRequest object itself and not from a GET/POST parameter as a measure against HTTP Watchers who could easily paste the session ID in the URL line or whatever.
is this easily breakable?
Last edited: