Changes between Version 1 and Version 2 of Ticket #11622, comment 20


Ignore:
Timestamp:
Mar 19, 2014, 4:29:02 AM (10 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11622, comment 20

    v1 v2  
    88One point I did not previously understand is:
    99
    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.
     10For 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.
    1111
    1212Regarding the code, this line confused me a bit: