Subject: | cookie_path option does not work |
Attached patch solves the problem for me and adds plack support
Cheers
Maros
Subject: | cookie_path.diff |
54c54,62
< return 1 if index '/'.$c->request->path, $cookie->{path};
---
> my ($request,$basepath);
> $request = $c->request;
> $basepath = $request->{_psgi_env}{SCRIPT_NAME}
> if exists $request->{_psgi_env};
> my $path = join ('/',grep { defined $_ } ($basepath,$request->path));
>
> return 0 if index '/'.$path, $cookie->{path};
>
> return 1;