$_SESSION stored in variable and passed to countSplitMessages - Thanks
Norv for the suggestion

Signed-off-by: emanuele <emanuele45@gmail.com>