Skip to content
Snippets Groups Projects
Commit f8aeebce authored by Tim Steiner's avatar Tim Steiner
Browse files

[gh-108] Merging from testing into staging

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x/staging@567 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 4e807553
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,10 @@ function _drupal_session_read($sid) {
else {
$user = db_query("SELECT u.*, s.* FROM {users} u INNER JOIN {sessions} s ON u.uid = s.uid WHERE s.sid = :sid", array(':sid' => $sid))->fetchObject();
}
$session_data = @gzinflate($user->session);
if ($session_data !== FALSE) {
$user->session = $session_data;
}
// We found the client's session record and they are an authenticated,
// active user.
......@@ -176,7 +180,7 @@ function _drupal_session_write($sid, $value) {
'uid' => $user->uid,
'cache' => isset($user->cache) ? $user->cache : 0,
'hostname' => ip_address(),
'session' => $value,
'session' => gzdeflate($value, 9),
'timestamp' => REQUEST_TIME,
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment