how to easily exploit login date/time in database from session_tokens array
Question
I want to exploit the last login date from session_tokens in database.
Here is the array of my last connection.
a:4:{s:10:"expiration";i:1663252695;s:2:"ip";s:39:"....";s:2:"ua";s:119:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15";s:5:"login";i:1662043095;}}
I want to get this information: s:5:”login”;i:1662043095; -> the last one
Is it possible to get it using WP_Session_Tokens class ?
https://developer.wordpress.org/reference/classes/wp_session_tokens/
Does it exist a WP function to access to this value other than (securely):
select user_id,meta_value from wp_usermeta where meta_key='session_tokens' and user_id=1;
0
9 months
2022-09-01T10:21:00-05:00
2022-09-01T10:21:00-05:00 0 Answers
0 views
0
Leave an answer