Hi....
You can store the session id by using session_id() function and store it in database table.
You also need to add data and time value as well as need to update every time when user will be refresh the page. on base of session_id().
session id must be unique when you will start the surf the site.
Other way is you can calculate the session from session_path by opening the session registration file.