[dancer-users] session destroy do not remove session file

Hugues hugues at max4mail.com
Mon Jun 8 11:14:15 BST 2015


Hello
I use  dancer1  version Dancer-1.3136 and YAML file to store session 
informations

when I do

get '/disconnect' => sub {
                 my $time     = session('Time');
                 my $username = session('username');
                 session->destroy;
                  debug "Connexion finished for $username @ $time, bye";

....


in log

08/juin/2015 12:04:52 [67867]  core @0.020885> entering before hook in 
/usr/local/share/perl5/Dancer/Hook.pm l. 62
08/juin/2015 12:04:52 [67867]  core @0.021410> entering 
before_template_render hook in /usr/local/share/perl5/Dancer/Hook.pm l. 62
08/juin/2015 12:04:52 [67867]  core @0.029130> trying to remove session 
file: /home/git/xxxxx/sessions/298172675856804521882197134418462808.yml 
in /usr/local/share/perl5/Dancer/Session/YAML.pm l. 87
08/juin/2015 12:04:52 [67867] debug @0.030032> Connexion finished for 
hugues at max4mail.com @ 1433755846, bye in /home/git/xxxxx/lib/main.pm l. 142


but yml file is not removed, and I can continue to navigate

ls sessions/
298172675856804521882197134418462808.yml



if someone has a idea ?

Hugues.


More information about the dancer-users mailing list