Makes secure cookie config fail safe