diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-04-01 18:22:07 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-04-01 18:22:07 +0400 |
| commit | 837ec70e3ee4378f4d7a0a616ad0f291b311152a (patch) | |
| tree | 51a3728d0a78fea402bfc96216721b2825874463 /include/functions.php | |
| parent | 52039010366520b842a250e8907c49b02fa9d03d (diff) | |
validate_session: check for user agent
Diffstat (limited to 'include/functions.php')
| -rw-r--r-- | include/functions.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php index e86c97474..ece6d1b91 100644 --- a/include/functions.php +++ b/include/functions.php @@ -621,6 +621,7 @@ $_SESSION["uid"]); $_SESSION["ip_address"] = $_SERVER["REMOTE_ADDR"]; + $_SESSION["user_agent"] = sha1($_SERVER['HTTP_USER_AGENT']); $_SESSION["pwd_hash"] = db_fetch_result($result, 0, "pwd_hash"); $_SESSION["last_version_check"] = time(); |