RE: My own "captcha" from 2 years ago......

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Like I said... Even if they have sound turned on.. Which all my sets do...
Most of them don't have speakers... That was put into effect over a year ago
due to some people listening to those damn screaming prank things at full
volume... Anyways... I was searching the php site, and it said there used to
be a bug that looks somewhat similar to my problem, but it said it was fixed
long ago... Not sure if this is even close to it or not, but this is the
first time I've run into a sessions problem.....

Just to simplify...

I have this on index.php

<?php
session_start();

$before = $_SESSION['code'];

echo '<img src=image.php>';

$after = $_SESSION['code'];

echo $before .' ' . $after;
?>

Then in image.php is my captcha... And where the session variable 'code' is
being created and updated...

In image.php is this:

<?php
session_start();

..........captcha code......
$_SESSION['code'] = rand(blahblahblah) to get the random code
?>


When I view index.php, the image displays, with a new code each time...
Working as it should, but the session variable echos out the previously
generated value, instead of the current value to match whats in the
picture... I'm not sure what I've done... But you can see from
http://nittanytravel.com:8080/    $before and $after have the same value... 

In that bug report I was reading it said that this happened until
session_start was called again.. But it said it was fixed back in php4... 

Not sure what I missed :(

Thanks,
Jake




> -----Original Message-----
> From: tedd [mailto:tedd@xxxxxxxxxxxx] 
> Sent: Sunday, March 25, 2007 7:54 PM
> To: Jake McHenry; 'tedd'; php-general@xxxxxxxxxxxxx
> Subject: RE:  My own "captcha" from 2 years ago......
> 
> At 10:49 AM -0400 3/25/07, Jake McHenry wrote:
> >Do I call the image creation file in an html <img tag? I've 
> tried a bunch of
> >things, and this is the only way I've been able to display 
> the image inline
> >so far, without the image headers blocking the rest of my output....
> >
> >I've been reading and somewhat interested in the audio and 
> pic captchas..
> >But audio won't work for my intranet... Hardly any of the sets have
> >speakers... Productivity solution I guess...
> >
> Jake
> 
> The audio is for visually impaired and unless their also deaf, they 
> have sound turned on.
> 
> tedd
> -- 
> -------
> http://sperling.com  http://ancientstones.com  http://earthstones.com
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.18/733 - Release 
> Date: 3/25/2007 11:07 AM
>  
> 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.18/733 - Release Date: 3/25/2007
11:07 AM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux