That depends of the goal that you want to achieve. If this is some sort of non-necessary information (i.e. 'good to have it, but if not - then ok'), then you can use cookies or sessions. I.e. you should set a cookie with 24 hours lifetime and at each visit you should check if it is set.
But: if this data is mandatory, if it is a way for you to restrict something or - more - build some security, then the answer will be: no way. Client can always send fake data to overcome any possible restriction. Cookie is just an optional HTTP-request parameter (and it can be deleted, yes). The only more or less solid parameter is IP-address, but, however, it can be changed with proxy-servers too.
Conclusion will be: you know nothing about your visitor. This is a rule, when you're dealing with web-application.