Class UserSessionHelper
java.lang.Object
com.atlassian.jira.pageobjects.util.UserSessionHelper
Class that can be used to manipulate the current user's session on the server.
- Since:
- v5.0.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidDeletes the JSESSIONID cookie.voidvoidSets the JSESSIONID value to garbage.
-
Constructor Details
-
UserSessionHelper
public UserSessionHelper()
-
-
Method Details
-
clearWebSudo
public void clearWebSudo() -
invalidateSession
public void invalidateSession()Sets the JSESSIONID value to garbage. Doing this will essentially invalidate the cookie, forcing JIRA to create treat the request as a request that comes in with an expired JSESSIONID. -
deleteSession
public void deleteSession()Deletes the JSESSIONID cookie. Not sending this value forces the Session Expired page error (sending a garbage value displays the XSRF page instead). -
destoryAllXsrfTokens
public void destoryAllXsrfTokens()
-