sid: ebbe5f40ed32d30f83a19f9480a2ec0c sname: frontend refreshed: 19 test: this is test
2. /lib/phpcaptcha/securimage_show.php
By default session for this script differs from magento session. So i’m trying to share magento’s session.
<?php include 'securimage.php'; ini_set('display_errors',1); error_reporting(E_ALL);
session_start(); //print_r(getallheaders());
if (!isset($_SESSION['andrey_counter'])) $_SESSION['andrey_counter']="not set"; if (!isset($_SESSION['andrey_test_value'])) $_SESSION['andrey_test_value']="not set";
Data in file is not OK
$_SESSION[’andrey_counter’] and $_SESSION[’andrey_test_value’] is empty! I don’t know howto fix this.
Take a look at sname. PHPSESSID not equals frontend (see 1.txt)
2.txt
sid: ebbe5f40ed32d30f83a19f9480a2ec0c sname: PHPSESSID refreshed: not set test: not set
3. app/code/../contacts/.. /IndexController.php
... $captha_code = $postObject->getCaptcha_code(); ... if (!isset($_SESSION['andrey_counter'])) $_SESSION['andrey_counter']="not set"; if (!isset($_SESSION['andrey_test_value'])) $_SESSION['andrey_test_value']="not set";
$img = new securimage(); if (isset($_GET['seccode'])) { $img->strcode = substr($_GET['seccode'], 6, 4); }
$img->show(); ?>
4. For example insert code into app/design/frontend/default/default/template/contacts/form.phtml
Here we generate code and send it to securimage_show script. not good idea but at least works. You should encode code here and decode it in securimage_show.php