I'm trying to use session variables to maintain site security and thus use these variables to make comparisons to different fields, one of which is to compare a set access level to the access level assigned to the user. to do this im making a string comparison, and to make sure the varialbes are coming up the same im writing them out as well. both are coming up on screen exactly the same but the comparison keeps producing a -1 ie not the same. i define one variable on the page and the other is the session variable, so im assuming its the latter that is causing the problem. does anyone know what would cause this and how i can fix it? ive tried using the trim function just in case it was picking up whitespace but to no avail.
