situation: site uses sessions to track users 'movements through the site as well as store user specific values
requirement: come up with a decent anti-hijacking solution for the sessions that is not dependent on browser cookies
my proposal: multi-level validation system combined with setting realistic session expiration values (10 minutes on most pages with 20 on pages requiring lots of data entry) as follows...
- validate session id (restrict to 32 long, not belonging to an expired session, and not including any invalid characters)
- validate referrer if provided
- if session id is propogated via the URI, validate the user's ip against a submask of the ip that created the session.
by my estimates this should minimize the risk of session theft while not inconveniencing the visitors.
your opinions: ??????