my $session = $self->session(); my $query = $self->query(); #clearing the session before writing new values. $session->clear(); $session->save_param();