View Single Post
  #10 (permalink)  
Old Nov 5th, 2007, 05:54
Monie Monie is offline
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: My Page Statistic [Browser & OS]

Solved it!
Just add some session checking and the code will no longer be run everytime the page load/refreshed!

Code: Select all
    If Session("saved") <> "saved" Then 'If session value is not equal the value "saved", this code will not be executed!
       open the database connection, saved the user IP address and
       set session("saved") = "saved"
    End If
Reply With Quote