WordPress.org
Search WordPress.org for:
Submit
Toggle Menu
Showcase
Learn
Themes
Plugins
Mobile
Support
Documentation
Forums
Get Involved
About
Blog
Hosting
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
,
7 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