diff options
| author | mark <mark> | 2012-01-26 20:27:15 +0000 |
|---|---|---|
| committer | mark <mark> | 2012-01-26 20:27:15 +0000 |
| commit | 71da79d075f823a1b3d6dedd5ffeed655cd2aaec (patch) | |
| tree | 235a15121069098cde1f56bbb10ffed7a0e5b4c3 | |
| parent | 4e6704160bd98ef70444dc165beeda1c793edbc5 (diff) | |
fix bizarre session id bug, from #15393
| -rw-r--r-- | httemplate/graph/elements/report.html | 3 |
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'); } |
