Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 mysql 中获取浏览器会话。任何想法提前谢谢。
您无法通过 MySQL 获取会话信息,因为它只是一个数据库,不处理任何 HTTP 内容。
通过 PHP 获取您需要的信息,然后将其存储在 MySQL 中。
http://php.net/manual/en/function.session-id.php
浏览器会话的位置取决于您使用的框架以及您是否使用数据库来存储会话的事实。你使用哪个框架?