Custom variables as session variables