Jump to content

Questions about Sessions...


doubledee

Recommended Posts

 

 

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.

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

 

 

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.

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.