summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2012-01-26 20:27:15 +0000
committermark <mark>2012-01-26 20:27:15 +0000
commit71da79d075f823a1b3d6dedd5ffeed655cd2aaec (patch)
tree235a15121069098cde1f56bbb10ffed7a0e5b4c3
parent4e6704160bd98ef70444dc165beeda1c793edbc5 (diff)
fix bizarre session id bug, from #15393
-rw-r--r--httemplate/graph/elements/report.html3
1 files changed, 2 insertions, 1 deletions
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');
}