i see the pattern in some theme where we can collect session of unlogged user. for example, in a comment form: After user commenting, user can see that the their comment is waiting for a moderation.
i want to know in what hook (the file, the class, or the functions) we can collect the information.
fyi i'm need this information to extaned theme capability to handle unlogged user. For example show them 'message' that they need register before submitting something or uploading something.