From 3a3a22ab974d5c23dc48c397a31ffc00c6d18a2e Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 26 Jan 2012 20:27:06 +0000 Subject: [PATCH] fix bizarre session id bug, from #15393 --- httemplate/graph/elements/report.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httemplate/graph/elements/report.html b/httemplate/graph/elements/report.html index 3773fbf1d..6d2a90c66 100644 --- a/httemplate/graph/elements/report.html +++ b/httemplate/graph/elements/report.html @@ -278,7 +278,8 @@ if ( $cgi->param('session') =~ /^(\d+)$/ ) { %opt = %{ $m->cache->get($session) }; } else { - $session = sprintf("%10d%6d", time, int(rand(1000000))); + $session = sprintf("%010d%06d", time, int(rand(1000000))); + sleep(2); $m->cache->set($session, \%opt, '1h'); } -- 2.11.0