Adding a $visitor['myvar'] = 6 in guest sessions?


Well-known member
From what I guess, sessions are stored in XenForos Database in xf_session, so if I put a variable into the $visitor array, I could track that value during the visit of my guest user.

But how can I store a value into $visitor? In XenForo_Visitor the only write function I see is ::setup($userId, $option). Do you have a clue, where I could start? Currently I work with cookies, but because of security I have to create sessionIds anyway and I don't want to reinvent the wheel.