👉 In programming, a session is an instance of a program that can be run multiple times. It's like a temporary state or state machine where the program runs in a fixed block of time and then resumes from a different point in time. For example, if you have a function `print_hello` defined in a class called `HelloWorld`, you can create an instance of this class every time it is called using the method `new()`. This creates a session for the `HelloWorld` object