Module Lunchify
Package jku.se

Class UserSession

java.lang.Object
jku.se.UserSession

public class UserSession extends Object
The UserSession class manages the current user session in the application. It provides static methods to set and retrieve the user who is currently logged in.
  • Constructor Details

    • UserSession

      public UserSession()
  • Method Details

    • setCurrentUser

      public static void setCurrentUser(User user)
      Sets the current logged-in user.
      Parameters:
      user - the user to set as currently logged in
    • getCurrentUser

      public static User getCurrentUser()
      Gets the current logged-in user.
      Returns:
      the current user, or null if no user is logged in