Class UserSessionHelper

java.lang.Object
com.atlassian.jira.pageobjects.util.UserSessionHelper

public class UserSessionHelper extends Object
Class that can be used to manipulate the current user's session on the server.
Since:
v5.0.1
  • 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()