Created
January 7, 2014 11:23
-
-
Save racke/8297992 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env perl | |
use strict; | |
use warnings; | |
use Dancer ':script'; | |
use Getopt::Long; | |
use Dancer::Plugin::Interchange6; | |
my $duration; | |
GetOptions ( | |
"expire=s" => \$duration, | |
) or die("Error in command line arguments\n"); | |
my $dsn = shift; | |
my $schema = shop_schema; | |
$duration ||= config->{session_expires}; | |
$schema->resultset('Session')->expire($duration); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment