Skip to content

Commit 1ffca12

Browse files
committed
Merge pull request #275 from mrjoel/mrjoel-cookiesession3.0
use JEE 3.0 to allow cookie session tracking
2 parents a909bf1 + 28980c3 commit 1ffca12

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/WEB-INF/web.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<web-app version="2.4"
33
xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
4+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_3_0.xsd">
55

66
<!-- The base folder is used to specify the root location of your Gitblit data.
77
@@ -45,5 +45,8 @@
4545
<filter-name>guiceFilter</filter-name>
4646
<url-pattern>/*</url-pattern>
4747
</filter-mapping>
48-
48+
49+
<session-config>
50+
<tracking-mode>COOKIE</tracking-mode>
51+
</session-config>
4952
</web-app>

0 commit comments

Comments
 (0)