WordPress.org
News
Showcase
Hosting
Extend
Themes
Plugins
Patterns
Blocks
Openverse
↗
︎
Learn
Learn WordPress
Documentation
Forums
Developers
WordPress.tv
↗
︎
Community
Make WordPress
Photo Directory
Five for the Future
Events
Job Board
↗
︎
About
About WordPress
Enterprise
Gutenberg
↗
︎
Get WordPress
Search Trac
Get WordPress
Make WordPress Core
Blog
Handbook
Tickets
Components
Browse Source
Trac Timeline
Create a New Ticket
Search:
Login
Notifications
Context Navigation
Back to Ticket #20276
Ticket #20276
: more-session-info.php
File more-session-info.php,
197 bytes
(added by
nacin
,
11 years ago
)
Line
1
<?php
2
add_filter
(
'attach_session_information'
,
function
(
$info
)
{
3
$info
[
'ip'
]
=
$_SERVER
[
'REMOTE_ADDR'
];
4
$info
[
'ua'
]
=
$_SERVER
[
'HTTP_USER_AGENT'
];
5
$info
[
'start'
]
=
time
();
6
return
$info
;
7
});
Trac UI Preferences
Download in other formats:
Original Format