Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
jhermiz
3564 Posts |
Posted - 2004-01-22 : 14:56:15
|
Can I write an SSI to retreive and update the number of visits to a site?I would think right when the main site opens it goes and increments the number of visits to the site??UPDATE Visits Set Visit=Visit+1At the same time it would retreive that value to display on the opening page ?I guess I could take this at another level and get a unique visit count based on IP address?Maybe I should start crawling before I walk...Jon |
|
MichaelP
Jedi Yak
2489 Posts |
Posted - 2004-01-22 : 16:04:56
|
You could also set a cookie and only incriment if the cookie does not exist. Of course if the user does not have cookies enabled, you will always incriment your counter. If they delete their cookies, then the next time they return they will incriment your counter again.I think if you do a search for counter or page counter on 4guysfromrolla you'll find a few examples on this.You definatly want this as a #Include file (Be sure to make it and ASP file!!)Michael<Yoda>Use the Search page you must. Find the answer you will.</Yoda> |
|
|
jhermiz
3564 Posts |
Posted - 2004-01-22 : 17:04:44
|
quote: Originally posted by MichaelP You could also set a cookie and only incriment if the cookie does not exist. Of course if the user does not have cookies enabled, you will always incriment your counter. If they delete their cookies, then the next time they return they will incriment your counter again.I think if you do a search for counter or page counter on 4guysfromrolla you'll find a few examples on this.You definatly want this as a #Include file (Be sure to make it and ASP file!!)Michael<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Thanks mike...I will research it.Ok @ asp file :-d... |
|
|
jhermiz
3564 Posts |
Posted - 2004-01-24 : 11:53:27
|
Hello Mike,I just wanted to come back and say thanks.Found the info I needed and got the counter working.Appreciate your time and effort.Jon |
|
|
|
|
|