-
Hi, So I checked my other active site. The specific of this site is that 2 CMS are running for the same user set. One is very similar as old e107. Records in old table looks correctly, new e107 session table looks wrong. Could you explain me this, please? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
e107 currently saves the sessions of guest visitors. Bots tend not to persist cookies, so every time a bot hits your site, a row gets added. We could definitely improve this by not saving cookies for guests. Unfortunately, one usage I can think of that would break from not saving cookies is |
Beta Was this translation helpful? Give feedback.
-
The code example from gitter discussion:
|
Beta Was this translation helpful? Give feedback.
e107 currently saves the sessions of guest visitors. Bots tend not to persist cookies, so every time a bot hits your site, a row gets added. We could definitely improve this by not saving cookies for guests.
Unfortunately, one usage I can think of that would break from not saving cookies is
/e107_images/secimg.php
, which saves the answer to the CAPTCHA inside the session. A better approach for this would be to send the client a cryptographically signed string that only the server can decode so that the CAPTCHA answer would not depend on cookies and sessions.