How to store search keyword or browsing history in database I'm making my final year project. Which is a website.
Things I can't do:


Store the browsing history of users between their login and logout session on the site. 
Or
Store the search keywords.


But I dont know how to do it. Is there any query or functions that I can use???
I'm using xampp server.

I'm really stuck in this phase and don't know how to do it.
One of my friend told me it's IMPOSSIBLE.
Does anyone have a possible solution rather than just IMPOSSIBLE.
Please help.
So, I'm not sure just what you are looking for here. 

Since you are using xampp you can manage user sessions in php using their session functions. 

Apache also has it's own domain logs which you can keep for however long. 

You can also use redis for session management if you are ok with the session information being volatile. 

In general I don't see this as a database question, and suggest moving this question to one of the other SE sites such as Stack Overflow or Server Fault.