Adding a function to get the sysauth cookie