Is it possible to read a session variable using javascript?
I'm trying to use an image verification script using PHP. I need to check the MD5 hash of the value entered into the text box is equal to the MD5 hash of the Imagecode.
The imagecode is stored as a session variable
In my javascript verficaton I want to check if the MD5 hash is corrct, but don't know where to start.
If javascript isn't able to access the variable is there another way of storing the md5 hash securely & matching from that?
I'm trying to use an image verification script using PHP. I need to check the MD5 hash of the value entered into the text box is equal to the MD5 hash of the Imagecode.
The imagecode is stored as a session variable
Code:
$_SESSION['image_random_value'] = md5($rand);
In my javascript verficaton I want to check if the MD5 hash is corrct, but don't know where to start.
If javascript isn't able to access the variable is there another way of storing the md5 hash securely & matching from that?