Search code examples
captchamodxmodx-revolution

Session values set outside modx are not accesible in snippet


I am trying to use captcha image in my MODx site which is already built and running. I am able to see captcha image but unfortunately captcha script not able to set session value which can be accessed in modx snippet so i cant match it with entered value. Script to create image is located in modx/assets/captcha/captcha.php. I have spend almost 3 days solving this problem. I tried different methods to make it work. but nothing works. Is there any solution ?? Someone came around this issue ?


Solution

  • Formit has a captcha prehook - can you take that snippet apart & see how they do it? In fact, why not just use that instead of rolling your own, it would probably cut down quite a bit of work.