Remember me

When a user chooses to be remembered, one cookie is set on the user's computer. This cookie contains three important pieces of information: userId, publicationId and auth token. The validity of the auth token is two weeks. If user login to the site within two weeks then a new auth token will set for next two weeks for that user. The expiry time of the cookie is one year, after this time the cookie will be deleted. However, it also gets deleted when the user decides to log out.

The web configuration to allow remember me functionality as follows:

<filter>
	  <filter-name>cookieFilter</filter-name>
	  <filter-class>
		com.ndc.usercontent.filter.UserCookieFilter
	  </filter-class>
	  <init-param>
	    <param-name>profileArticleType</param-name>
	    <param-value>userProfile</param-value>
	  </init-param>
	</filter>
	<filter-mapping>
	  <filter-name>cookieFilter</filter-name>
	  <url-pattern>/*</url-pattern>
	</filter-mapping>