Profile script visit count incrementation
Hi,
I'm trying the code below in a profile script but it is never incremented.
if(user.sessionId!=user.getLocal('lastSessionId')) {
user.setLocal('lastSessionId', user.sessionId);
return (user.get('visitCount') || 0) + 1;
}
For test it faster, i override the sessionIdLifetime at 30 sec.
The sessionId change works fine.
But visitCount is always blocked at 1.
Do you know why ?