Unique ID problem |
Hi,
Query : 3 different users accessed internet With Same IP Address. In PHP I given One href Link when ever User click that Link. I get the IP Address of the User .. Now How to find/Get the User Any Unique Id. whenever Click the Href Link. i am geting same ip address(because All 3 Users Connected With same IP ). I want Which User Click That Link .. That user Information I want ...please Give any refernce links or Idea .. Here : Without Using Cookies
Manikanta
There is no way to identify a site visitor without using sessions/cookies. As you are aware, IP address can be used by more than one person. Nothing else about the HTTP request, user agent, etc. would allow you to identify the site visitor. That's why all authentication systems use sessions/cookies.
create a long randomized 'token' . pass it in a hidden form field. or add it to your links. and yes ip address is basically meaningless - it can be easily spoofed, and for some users is 'reset' every few minutes by their network provider.
I think you can use Session ID. or try to read this https://laracasts.com/discuss/channels/g...id-problem.
Hope you will get this. PHP Code: function id($suffx = '', $length = 10) { PHP Code: id(time());id(date(YmdHis)); |
Welcome Guest, Not a member yet? Register Sign In |