Jump to content

First Time Visiting?


Warptweet

Recommended Posts

I was wondering, is it possible to display a message to a visitor of my website IF he has NEVER visited my website before?

 

I'm not asking for a whole code (unless you already know one) but I need help thorizing the basics of this. NOTE: I can use MySQL databases to store IP's or something if needed.

Link to comment
https://forums.phpfreaks.com/topic/39423-first-time-visiting/
Share on other sites

2 options that I can think of:

 

1.) Track their IP.

 

Problems:

If their IP changes, they will appear as a new user. (All dialup users will have this problem.)

If their on a network, one IP will apply to multiple users.

 

2.) Use Cookies.

 

Problems:

If they delete the cookies or it expires, they appear to be a new user.

 

Link to comment
https://forums.phpfreaks.com/topic/39423-first-time-visiting/#findComment-190207
Share on other sites

If their IP changes, they will appear as a new user. (All dialup users will have this problem.)

If their on a network, one IP will apply to multiple users.

 

As well as anyone else who has a dynamic IP.

So while my IP at home could constantly change, and I'd see the message a lot, I'd go to school and never see it there because someone else had been first - seems weird to me as a visitor.

 

I recommend the "First Time?" buttons too.

Link to comment
https://forums.phpfreaks.com/topic/39423-first-time-visiting/#findComment-190213
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.