Hi!
onli wrote:Hi Garvin
I'm not familiar with session-management. I thought that with naming, setting a timeout and starting a session if needed I handly this properly, and to that time I thought about storing data in the session. I wasn't aware that may collide with an existing session. May I simply read the session_id() without needing to do anything else? That'd be fine.
Yes, that should do the trick already.
I use CacheLite to save which session_id() belongs to which comment_id, and to save it for only five minutes. That way, I thought I can minmize the danger of having someone misuse this plugin to change the comment of someone else. In fact, I'm storing nothing in a session, I'm only reading the id.
Maybe you should better store it in the session, because this is related to a single user only. If you use a global cache, it is both more overhead and probably even less secure because the cache might screw with the data of a user: If he submits his comments 2 seconds before the Cache of CacheLite is to be purged, his data would only be valid for 2 seconds and not for 5 minutes.
Keep it up, I'm sure this will be a plugin that could be useful to many people, as it's been asked for sometimes already. About the visual indicators I am a bit clueless, maybe YellowLED or Don or others could give their feedback?
Regards,
Garvin