I am importing a class using the command: <%@ page import="user.UserLoggedIn" %> I am able to work on the methods but my query is: I just want to store these variables throughout the session and then reset them In a bean, I can use scope="session" Is there any similar way to do it in classes?