Make WordPress Core

Ticket #20276: more-session-info.php

File more-session-info.php, 197 bytes (added by nacin, 11 years ago)
Line 
1<?php
2add_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});