Skip to content

Commit

Permalink
placknize for cookie handling
Browse files Browse the repository at this point in the history
  • Loading branch information
yappo committed Mar 20, 2010
1 parent 42a1982 commit 0cbe13c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/JSTAPd/Server.pm
Expand Up @@ -166,7 +166,10 @@ sub handler {

# set test session cookie
if ($path eq 'index' || $path =~ /\.t$/) {
$res->cookies->{$jstapd_prefix} = { value => $session };
$res->cookies->{$jstapd_prefix} = {
value => $session,
path => '/',
};
}
} elsif (($path) = $req->uri->path =~ m!^/${jstapd_prefix}__api/(.+)?$!) {
# ajax request for jstapd
Expand Down

0 comments on commit 0cbe13c

Please sign in to comment.