How do you refer to the currently logged user in your code?

Posted by Emanuil on Stack Overflow See other posts from Stack Overflow or by Emanuil
Published on 2010-05-20T11:34:12Z Indexed on 2010/05/20 12:00 UTC
Read the original article Hit count: 228

In other words - what would be a good name for a variable that references the currently logged user?

I've come up with a few:

  • logged_user
  • visitor
  • me

I'm not convinced either of them is good enough though.

© Stack Overflow or respective owner

Related posts about variable-naming

Related posts about language-agnostic