掲示板

Session Cookie path attribute not set

7年前 に Kruttika Phalke によって更新されました。

Session Cookie path attribute not set

New Member 投稿: 11 参加年月日: 13/04/22 最新の投稿
Anybody having idea how to set Session Cookie path attribute in liferay 6.0 or 6.1 application ?
thumbnail
7年前 に Olaf Kock によって更新されました。

RE: Session Cookie path attribute not set

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
Kruttika Phalke:
Anybody having idea how to set Session Cookie path attribute in liferay 6.0 or 6.1 application ?


Check the application server you're using. Liferay just starts a session, the appserver provides the underlying mechanics to introduce a session cookie.
7年前 に Kruttika Phalke によって更新されました。

RE: Session Cookie path attribute not set

New Member 投稿: 11 参加年月日: 13/04/22 最新の投稿
Olaf Kock:
Kruttika Phalke:
Anybody having idea how to set Session Cookie path attribute in liferay 6.0 or 6.1 application ?


Check the application server you're using. Liferay just starts a session, the appserver provides the underlying mechanics to introduce a session cookie.



M using apache tomcat
thumbnail
7年前 に Artur Linhart によって更新されました。

RE: Session Cookie path attribute not set

Expert 投稿: 459 参加年月日: 07/09/13 最新の投稿
Perhaps this could help you:
"sessionCookiePath

The path to be used for all session cookies created for this context. If set, this overrides any path set by the web application. If not set, the value specified by the web application will be used, or the context path used if the web application does not explicitly set one. To configure all web application to use an empty path (this can be useful for portlet specification implementations) set this attribute to / in the global CATALINA_BASE/conf/context.xml file.

Note: Once one web application using sessionCookiePath="/" obtains a session, all subsequent sessions for any other web application in the same host also configured with sessionCookiePath="/" will always use the same session ID. This holds even if the session is invalidated and a new one created. This makes session fixation protection more difficult and requires custom, Tomcat specific code to change the session ID shared by the multiple applications."

See Tomcat documentation
https://tomcat.apache.org/tomcat-8.5-doc/config/context.html#Context_Parameters