C89 compat for session