Closed (fixed)
Project:
Delayed ownership
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2013 at 22:10 UTC
Updated:
20 Mar 2013 at 14:00 UTC
I would suggest, that we use md5-hashes of the session_id(). Tablefield is 32 chars, but the session on our Server e.g is 43 chars. When cutting the last chars, we take quite a lot uniqueness out of our hash (which actually caused some false assignments). When doing a md5-hash we get it back without changing db.
Patch attached
| Comment | File | Size | Author |
|---|---|---|---|
| use_md5_session.patch | 1.94 KB | smussbach |
Comments
Comment #1
organicwire commentedYour patch went into the dev branch. Indeed md5 sums make more sense. We used drupal_substr() for debugging during porting code to D7.
I modified your patch in order to have md5 sums from session id + client ip address.
Comment #2
smussbach commentedI think we shouldn't use $_SERVER['REMOTE_ADDR'] as it could easily change between requests e.g. if user sits in a network behind a proxy with two outgoing IPs.
Comment #3.0
(not verified) commentedtypo