Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d01b4dbe
Commit
d01b4dbe
authored
Oct 28, 2005
by
Dries
Browse files
- Patch
#35354
by Moshe/chx: only update the last access time for authenticated users.
parent
699df674
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/session.inc
View file @
d01b4dbe
...
...
@@ -43,8 +43,9 @@ function sess_write($key, $value) {
global
$user
;
db_query
(
"UPDATE
{
sessions
}
SET uid = %d, cache = %d, hostname = '%s', session = '%s', timestamp = %d WHERE sid = '%s'"
,
$user
->
uid
,
$user
->
cache
,
$_SERVER
[
"REMOTE_ADDR"
],
$value
,
time
(),
$key
);
db_query
(
"UPDATE
{
users
}
SET access = %d WHERE uid = %d"
,
time
(),
$user
->
uid
);
if
(
$user
->
uid
)
{
db_query
(
"UPDATE
{
users
}
SET access = %d WHERE uid = %d"
,
time
(),
$user
->
uid
);
}
return
''
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment