Closed GoogleCodeExporter closed 9 years ago
I need this too...
Original comment by mariuspl...@gmail.com
on 11 Jul 2011 at 12:02
[deleted comment]
You just need to instance two SimpleCaptcha setting different "session_var"
attribute, for example using two files:
File 1: captcha1.php
=====================
session_start();
$captcha = new SimpleCaptcha();
$captcha->session_var = 'captcha1';
$captcha->CreateImage();
File 2: captcha2.php
=====================
session_start();
$captcha = new SimpleCaptcha();
$captcha->session_var = 'captcha2';
$captcha->CreateImage();
Also you can use just one file, but be careful and dont give the session_var
via GET/POST because that will be a BIG security problem.
Original comment by joserodr...@gmail.com
on 14 Jul 2011 at 3:24
YEah, but I don't want to include 2 files in my web page (eg: captcha1.php &
captcha2.php), I should be able to do it with just one.
Also, assume a lot of my site's pages have captchas on them and the user opens
each page in multiple tabs. Then, only the captcha value from last tab would be
the accurate code for any of the tabs.
Original comment by asha...@gmail.com
on 14 Jul 2011 at 4:41
In that case you need to do something like this:
captcha.php?id=JWIQJSSQIWOIJSJ
Where "id" identifies the form or the session var to use. You have a lot of
ways to implement this.
Original comment by joserodr...@gmail.com
on 14 Jul 2011 at 4:47
I like that. Any other suggestions?
Original comment by asha...@gmail.com
on 14 Jul 2011 at 5:43
Original issue reported on code.google.com by
MissSass...@googlemail.com
on 14 Jun 2011 at 3:00