Changes between Version 1 and Version 2 of Ticket #11622, comment 20
- Timestamp:
- Mar 19, 2014, 4:29:02 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11622, comment 20
v1 v2 8 8 One point I did not previously understand is: 9 9 10 For an authenticated session, the `sid` (`SESSION.sid`) is used in the author field when changes are made (and a feature long-requested is to instead display the "full username", from `SESSION_ATTRIBUTE.name`: trac:#7339). However, for an anonymous session, the `sid` is a hash and the username from `SESSION_ATTRIBUTE.name` together with `SESSION_ATTRIBUTE.email` to populate the author in a form.10 For an authenticated session, the `sid` (`SESSION.sid`) is used in the author field when changes are made (and a feature long-requested is to instead display the "full username", from `SESSION_ATTRIBUTE.name`: trac:#7339). However, for an anonymous session, the `sid` is a hash and the username is generated from `SESSION_ATTRIBUTE.name` and `SESSION_ATTRIBUTE.email`, which is then used to populate the author in a form. So the author of a change is the `sid` of an authenticated user, but for an unauthenticated user it has nothing to do with the `sid` of the unathenticated session. 11 11 12 12 Regarding the code, this line confused me a bit: