phpSensei Posted August 6, 2011 Share Posted August 6, 2011 I think you just need to learn the concept of sessions better then... Quote Link to comment Share on other sites More sharing options...
doubledee Posted August 6, 2011 Author Share Posted August 6, 2011 I think you just need to learn the concept of sessions better then... Huh? Quote Link to comment Share on other sites More sharing options...
phpSensei Posted August 6, 2011 Share Posted August 6, 2011 I'm sorry, but that is less reliable than what I have been doing. What happens when you have 10 users all with the same IP addy? Or when you have someone like me who uses public free wi-fi sites? I came up with a better work-flow last night an will post question today of how to implement it. Thanks, Debbie I know most sites allow only 2 IPs at most per house hold/ip address for security reasons, most of the time just 1, and this can be handled in PHP. 10 or more I wouldn't even let my site be accessed by those people for security reasons. You can keep sessions alive by storing them in a database, this way you can redirect the user / guest ALL you want to the previous page. My other methods I suggested were just possibilities available, atleast you should know them. Quote Link to comment Share on other sites More sharing options...
doubledee Posted August 6, 2011 Author Share Posted August 6, 2011 I know most sites allow only 2 IPs at most per house hold/ip address for security reasons, most of the time just 1, and this can be handled in PHP. 10 or more I wouldn't even let my site be accessed by those people for security reasons. You can keep sessions alive by storing them in a database, this way you can redirect the user / guest ALL you want to the previous page. My other methods I suggested were just possibilities available, atleast you should know them. Anyone accessing your website from a corporate location or free wi-fi spot or library or AOL would all share the same IP. That could be dozens or hundreds of people. It is fairly common relying on IP to identify a user and associate a page to would likely be very unreliable. Debbie Quote Link to comment Share on other sites More sharing options...
phpSensei Posted August 6, 2011 Share Posted August 6, 2011 I wrote a class awhile back handling multiple IP addresses, i gave each new incoming IP address with one identical to another a new ID to handle the user by... I will find it and provide an example. In my opinion you have to do things yourself sometimes, build your own libraries, functions, and codes that work specifically for your needs. I would still never let 2 ip addresses conflict on my site, PHP would need to resolve the issue. and I understand what you are getting at, which is why I suggested saving the sessions for this approach. Quote Link to comment Share on other sites More sharing options...
mikesta707 Posted August 6, 2011 Share Posted August 6, 2011 If you want to save the last page a user was at (whether they were a guest or not) why not just use a cookie? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.