For fraud detection it seems great to include the IP address of the voter into the flag_content table.
I noticed that session_api kind of does this by tying from flag to sid to session_api.session_id to sessions.sessionid to sessions.hostname, but that only works as long as the session stays alive. If you need to research a session that got regenerated or has simply expired we no longer have that data.
Should we add long term storage of the IP address in flag module? Or perhaps to session_api?
Comments
Comment #1
ezra-g commentedSubscribe.
Comment #2
gregglesAs I read the session_api code more it seems like it wouldn't help us in the long run since it deletes sessions on cron.
I don't know the full purpose of session_api, so maybe it could be extended to keep sessions around for a bit longer.
Comment #3
quicksketchThe entire point of depending on Session API was so that it could handle detecting IP addresses, cookie-based session creation and management. Therefor I'd prefer that Session API provide all such information storage and retrieval rather than Flag needing to store extra information.
Comment #4
gregglesThanks, Nate. That works for me.
@jhedstrom, are you OK with a patch that keeps some more data (like IP) in the long run for archival purposes?
Comment #5
jhedstrom@greggles definitely :)
Comment #6
a.ross commented