I've got a small problem - I added CAPTCHA to form and I store the image data in php session
at first I tried to add <?php?> to formmail.cgi, but it didn't work (internal server error 500).
So the question for me is how to read session data:
it's in folder /folder/session_data/sess_ here comes the id, which is stored in a cookie
HTTP_COOKIE = PHPSESSID=8f67cf6a513f325b1493fa5b682c742e
rnd¦s:46:"here comes the value of the cookie";
Is there a method to do that?
Thanks in advance
Regards
Michal
PS. With php it's:
<?php
session_start(); //read session, reads cookie and sets $_SESSION variables
if(empty($_POST['rnd']) ¦¦ $_SESSION['rnd']!= $_POST['rnd']) {
echo "Wrong data";
exit;
}
?>