Subject: | Add method to check if a session exists without creating one |
Currently, as soon as you access $self->session a new session is created.
In my application I want to check if some particular value is stored in
the session, but if there is no session I don't want to create one.
Please add a new method like this to the plugin:
sub session_exists {
my $self = shift;
return exists $self->{__CAP__SESSION_OBJ};
}
Thanks!