sukria/dancer2 — Issue #20: session can't be use in plugin
Author: geistteufel
Created: 2011-11-15 23:20:42+00:00
State: open

I have made a simple test :

```perl
register redis => sub {
my ($name) = @_;
$_settings ||= plugin_setting;
session('redis' => 1);
return _handle($name);
};
````
I have this error :

```log
Can't call method "cookie" on an undefined value at vendors/Dancer/lib/Dancer/Core/App.pm line 75, line 16.
```