Idenity User

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
larynx
Forum Newbie
Posts: 2
Joined: Fri Jan 12, 2007 7:52 pm

Idenity User

Post by larynx »

I Want To Place Every User That Enters My Site Into A SQL Database And Then Extract Stats From That Database So I Need To Be Able To Uniquely Identify Every User. So What Is The Best Way To Uniquely Identify A User In Your Site Using PHP, Is It Through A Session ID, IP Address, Cookie, Or Something Else?

Thanks In Advance...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Username? User ID? .. semaphore?

It's probably not a good idea to capitalize each word here. You'll get lots of questions about it.
User avatar
boo_lolly
Forum Contributor
Posts: 154
Joined: Tue Nov 14, 2006 5:04 pm

Post by boo_lolly »

feyd wrote:Username? User ID? .. semaphore?

It's probably not a good idea to capitalize each word here. You'll get lots of questions about it.
yeah, like, do you do a lot of acid??? 8O
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

I Don't See What's Wrong Here... Call Me Crazy! 8)

You Guys Are Seriously Whacked Out.
larynx
Forum Newbie
Posts: 2
Joined: Fri Jan 12, 2007 7:52 pm

Post by larynx »

I Really Like The Shift Key, And I Think People Just Don't Use It Enough...

About The Question, Creating Accounts Is Not An Option What Is The Second Best Thing To Do?
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

larynx wrote:I Really Like The Shift Key, And I Think People Just Don't Use It Enough...

About The Question, Creating Accounts Is Not An Option What Is The Second Best Thing To Do?
I think the second best option would be cookies or a combination of ip and cookie (household). Have a unique ID for every cookie id that you make up and store stats for that user You can then begin to check ips and build ideas off of cookies within an ip.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

larynx wrote:I Really Like The Shift Key, And I Think People Just Don't Use It Enough...

About The Question, Creating Accounts Is Not An Option What Is The Second Best Thing To Do?
Fair play :-)

I'd recommend using cookies alone. Most IPs change randomly every couple of days (or less!).
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

larynx wrote:I Really Like The Shift Key, And I Think People Just Don't Use It Enough...

About The Question, Creating Accounts Is Not An Option What Is The Second Best Thing To Do?
Someone else recently did/does the same with the capitalization. Is there something I missed? Did the English spelling change while I was celebrating New Year's?

Sorry to be off-topic, but if people continue to do this even after feyd made a remark about it I must say something about it. Please keep the posts readable. many people will be grateful. Thanks.
Post Reply