I am new at magento. What I want to do is on every page access, to write some message into log.
I want to write some unique ID of user(if logged in - username, if not - cookie id...)
I found file:
I changed it to do some simple insert to database, but how can I get cookieID or username in this file?
Or maybe I am looking wrong file?
I need some unique id, so I can recognize visitor if he back.