# cache session here instead of flushing/reading from cookie all the time my $SESSION = undef;