basic session flash and logging