[Phpmyadmin-devel] permanent storage feature done - please provide your feedback
Sebastian Mendel
lists at sebastianmendel.de
Mon Aug 17 08:19:07 CEST 2009
On 13.08.2009 21:57, Zeeshan M. wrote:
> Also, I found a minor bug in my code. Extracted db value for
> LoginCookieValidity turns out to be non-INT type by default.
all Variables from $_REQUEST (_COOKIE, _GET, _POST) are strings
> So, if you
> have tried running the script, you may have realized that your session
> breaks in less than expected time.
> Multiplying db value by 1 should do the trick.
use
$myVar = (int) $myVar;
or
$myVar = intval($myVar);
--
Sebastian Mendel
More information about the Developers
mailing list