How to set user to the session in bootstrap. I am getting the error
Error initializing the application: No such property: session for class: BootStrap
In bootstrap.groovy
class BootStrap {
def init = { servletContext ->
session.loggedInUser = "Anantha"
}
def destroy = {
}
}