When user from REMOTE_ADDR visits my site my server 'visits' my page too
<p>I'm totally new in some tech stuff somy question may seem funny, however, I ask:</p>

<p>When user visits my page I check if i.e $_SESSION['hit'] is set. If not I count visit and write it to the db and then set $_SESSION['hit'] to 1 to avoid doubling the same visit. And then problem occurs: it writes:</p>

<ol>
<li>visiting user data (i.e. REMOTE_ADDR and session_id, but </li>
<li>also writes 'visit' from address that belongs to server on which I
    have my site.</li>
</ol>

<p>For user session_id is set but for this second visit session_id is null/empty. All these visits happen in the same time. What is going on?</p>

<p>Thanx for every answer.</p>
