RSS Feed/News Adding a $visitor['myvar'] = 6 in guest sessions?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
25,797
Points
823

Reputation:

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.

Continue reading...
 
Status
Not open for further replies.
Top