我们如何使用会话获取购物车中的os,浏览器等用户信息?

Can anyone suggest me how we can store the end user information like what OS he/she will use and what browser he/she is using and in which page he/she is in? I thought it would be better to use sessions to get this type of information but exactly don't know how to do that :(. I am new to PHP can anyone suggest me how to it. Great thanks for your help..

Sessions are used for storing temporary information in per-user basis, they're not offering any kind of client information.

You are looking in functions as get_browser, along with the server information coming with $_SERVER['HTTP_USER_AGENT'].

This is not 100% reliable though, because HTTP_ server information are not reliable.