Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-Session CPAN distribution.

Report information
The Basics
Id: 29536
Status: resolved
Priority: 0/
Queue: CGI-Application-Plugin-Session

People
Owner: Nobody in particular
Requestors: sven-bitcard [...] sven.de
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.02
Fixed in: (no value)



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!
This will be available in version 1.03. I have renamed it to session_loaded since I think it is more clear as to what it does. Cheers, Cees