ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "YuxuanWang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-2710) Session not unbind from current request after invoking request.getSession().invalidate()
Date Tue, 23 Feb 2016 05:30:18 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-2710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15158305#comment-15158305
] 

YuxuanWang commented on IGNITE-2710:
------------------------------------

ok,thanks
ignite.xml:
	<bean id="session.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
		<property name="gridName" value="sessionGrid" />
		<property name="metricsLogFrequency" value="0" />
		<property name="gridLogger" >
			<bean class="org.apache.ignite.logger.slf4j.Slf4jLogger" />
		</property>
		<property name="cacheConfiguration">
			<bean class="org.apache.ignite.configuration.CacheConfiguration">
				<!-- Cache mode. -->
				<property name="name" value="webSession" />
				<property name="cacheMode" value="PARTITIONED" />
				<property name="backups" value="1" />
			</bean>
		</property>
		<property name="discoverySpi">
			<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
				<property name="ipFinder">
					<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
						<property name="addresses">
							<list>
								<value>localhost</value>
							</list>
						</property>
					</bean>
				</property>
			</bean>
		</property>
	</bean>

web.xml:
<listener>
	<listener-class>org.apache.ignite.startup.servlet.ServletContextListenerStartup</listener-class>
	</listener>
	<filter>
		<filter-name>IgniteWebSessionsFilter</filter-name>
		<filter-class>org.apache.ignite.cache.websession.WebSessionFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>IgniteWebSessionsFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	<context-param>
		<param-name>IgniteConfigurationFilePath</param-name>
		<param-value>/var/www/ignite/ignite-session.xml</param-value>
	</context-param>
	<context-param>
		<param-name>IgniteWebSessionsGridName</param-name>
		<param-value>sessionGrid</param-value>
	</context-param>
	<context-param>
		<param-name>IgniteWebSessionsCacheName</param-name>
		<param-value>webSession</param-value>
	</context-param>

> Session not unbind from current request after invoking request.getSession().invalidate()
> ----------------------------------------------------------------------------------------
>
>                 Key: IGNITE-2710
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2710
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 1.5.0.final
>         Environment: java8, tomcat8
>            Reporter: YuxuanWang
>              Labels: community, session, user
>             Fix For: 1.6
>
>
> System.out.println(request.getSession().getId());
> request.getSession().invalidate();
> System.out.println(request.getSession().getId());
> getSession() although return the same session after the invalidation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message