Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
66b97fc
)
whitespace cleanup
author
Jason Woofenden
<jason@jasonwoof.com>
Wed, 28 Sep 2011 19:11:35 +0000
(15:11 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Wed, 28 Sep 2011 19:32:08 +0000
(15:32 -0400)
session.php
patch
|
blob
|
history
diff --git
a/session.php
b/session.php
index
9013157
..
f79373a
100644
(file)
--- a/
session.php
+++ b/
session.php
@@
-36,15
+36,15
@@
# generate a new random 16-character string
function session_generate_key() {
$character_set = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
# generate a new random 16-character string
function session_generate_key() {
$character_set = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
- $id = " ";
+ $id = " ";
# PHP 4.2.0 and up seed the random number generator for you.
# Lets hope that it seeds with something harder to guess than the clock.
# PHP 4.2.0 and up seed the random number generator for you.
# Lets hope that it seeds with something harder to guess than the clock.
- for($i = 0; $i < 16; ++$i) {
- $id{$i} = $character_set{mt_rand(0, 61)};
- }
+ for($i = 0; $i < 16; ++$i) {
+ $id{$i} = $character_set{mt_rand(0, 61)};
+ }
- return $id;
+ return $id;
}
# track this user with a session cookie (ie a cookie that goes away when the
}
# track this user with a session cookie (ie a cookie that goes away when the