Re: Re: About Session And Cookies
| From: | Stut | Date: | Thu, 30 Aug 2007 09:04:13 +0000 |
| Subject: | Re: Re: About Session And Cookies | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261524@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
On Wed, August 29, 2007 4:33 pm, tedd wrote:Indeed it is. Use the user agent instead and you should be fine. However, I would not be surprised if there is a user agent out there somewhere that changes that header when it feels so inclined, but it's infinitely better than using the IP. -Stut http://stut.net/At 10:52 PM +0200 8/18/07, Michelle Konzack wrote:You have just booted all AOL users from your website. They change IP address every request sometimes. IP is absolutely useless for identification.Am 2007-08-17 22:07:47, schrieb Bastien Koert:When the user first generates a session id, grab the user's ip and store both in mysql. In the code, always check the session id against the user's ip before doing anything. If they don't match with what you started with, then stop. That should stop most Session-Hijackers, don't you think? Cheers, tedd PS; Back from vacation, and all ready to be retrained.If cookies are not available, you can either hide the id in the hidden form field element or enable trans_sid to automatically pass the session id in the urlThis will be a security risk since Session-Hijacker can grap the URL GreetingsMichelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant