Tomcat 7 Session-Cookie-Pfad
-
09-10-2019 - |
Frage
Ich habe ein großes Problem mit meiner Anwendung und Tomcat 7. Meine Anwendung benötigt Set Session-Cookie auf „/“ Pfad statt „/ Kontext“ Pfad. In tomcat 6 war es eine Frage der das Hinzufügen eines weiteren Eigenschaft Connector (emptySessionPath = „true“) und Tomcat 7 ist diese Sache nicht erkennen. Ich weiß, dass Servlet 3.0-Spezifikation auf pro-Kontext Basis konfigurieren können, aber ich konnte es nicht mit Tomcat 7. funktioniert fügt es noch den Kontextpfad statt „/".
werde ich sehr dankbar für den Empfang, wie es zu tun.
Lösung
Juts put the sessionCookiePath="/"
attribute into your context.xml root node:
<Context ... sessionCookiePath="/" > ... </Context>
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow