Re: random token re-used in subsequent requests

Vincent Veyron <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Wed, 18 May 2016 09:35:45 -0400
Lathan Bidwell <[email protected]> wrote:

> Is it possible that its not a problem of the rand, but a problem of the ||=
> ?
> 
> Try debugging the value before you set it. It could be a scoping issue
> where the old value stays in the variable and then ||= doesn't overwrite it.
> 

Hi Lathan,

That's not it I'm afraid : below is this output in error_log before and after ||=, you can see that the value is undefined first, then set to a previous value after a few iterations

Use of uninitialized value in concatenation (.) or string at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token :  at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token : RzFMMRznJ9fRaHgVU27AQdrN4WgMr7cH at /home/lib/Compta/Base/Handler/entry.pm line 150.
Use of uninitialized value in concatenation (.) or string at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token :  at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token : 45GJYXZvPkMw55Zfkxr2H3EnN7S19Wzw at /home/lib/Compta/Base/Handler/entry.pm line 150.
Use of uninitialized value in concatenation (.) or string at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token :  at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token : xW0r3dUFFDfeTxzQnftxhMm2PyoX12Bc at /home/lib/Compta/Base/Handler/entry.pm line 150.
Use of uninitialized value in concatenation (.) or string at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token :  at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token : 8Os5Dyfmpch7DWOdZ0yvn1JN7aVrT9q3 at /home/lib/Compta/Base/Handler/entry.pm line 150.
Use of uninitialized value in concatenation (.) or string at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token :  at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token : VpCyv6GmeQwPqnD84nYBVGJeS93g64of at /home/lib/Compta/Base/Handler/entry.pm line 150.
Use of uninitialized value in concatenation (.) or string at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token :  at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token : 7YoiW2abgrnno8nivS8VYoEXKKh9K2KI at /home/lib/Compta/Base/Handler/entry.pm line 150.
Use of uninitialized value in concatenation (.) or string at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token :  at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token : nNDYxt5EocI8gjXwq7Lc5FczPdfcNKPn at /home/lib/Compta/Base/Handler/entry.pm line 150.
Use of uninitialized value in concatenation (.) or string at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token :  at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token : RzFMMRznJ9fRaHgVU27AQdrN4WgMr7cH at /home/lib/Compta/Base/Handler/entry.pm line 150.
Use of uninitialized value in concatenation (.) or string at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token :  at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token : 45GJYXZvPkMw55Zfkxr2H3EnN7S19Wzw at /home/lib/Compta/Base/Handler/entry.pm line 150.
Use of uninitialized value in concatenation (.) or string at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token :  at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token : xW0r3dUFFDfeTxzQnftxhMm2PyoX12Bc at /home/lib/Compta/Base/Handler/entry.pm line 150.
Use of uninitialized value in concatenation (.) or string at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token :  at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token : 8Os5Dyfmpch7DWOdZ0yvn1JN7aVrT9q3 at /home/lib/Compta/Base/Handler/entry.pm line 150.
Use of uninitialized value in concatenation (.) or string at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token :  at /home/lib/Compta/Base/Handler/entry.pm line 146.
Token : VpCyv6GmeQwPqnD84nYBVGJeS93g64of at /home/lib/Compta/Base/Handler/entry.pm line 150.




-- 
					Bien à vous, Vincent Veyron 

https://compta.libremen.com
Logiciel de comptabilité générale, libre
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.