I am trying to build a custom login form, and I have managed to get it working so far.
When the user logs in, the databse is queried, and the relevant data is pulled out and inserted into two custom objects I created. The first contains all the user data,and the second contains other site wide settings, mainly customising the look and feel of the site.
I have stored these obects in session variables, and check them when each page first loads. Everything works fine like this.
I am not too sure on the security of session variables for holding this data, as I understand it HTML is a stateless protocol, so I would have thought these variables would be lost between pages. Are they stored client side? Can they be tampered with somehow? If they are on the server side, then how does the server know that the user has left the session, and thus destroy the variables.
I dont want clever users monkeying around with key values and other stuff, as that could potentially expose confidential information which would be VERY bad for us ;-)
When the user logs in, the databse is queried, and the relevant data is pulled out and inserted into two custom objects I created. The first contains all the user data,and the second contains other site wide settings, mainly customising the look and feel of the site.
I have stored these obects in session variables, and check them when each page first loads. Everything works fine like this.
I am not too sure on the security of session variables for holding this data, as I understand it HTML is a stateless protocol, so I would have thought these variables would be lost between pages. Are they stored client side? Can they be tampered with somehow? If they are on the server side, then how does the server know that the user has left the session, and thus destroy the variables.
I dont want clever users monkeying around with key values and other stuff, as that could potentially expose confidential information which would be VERY bad for us ;-)