I have the code below to redirect when the session is expired. Instead of redirecting after the session is expired, it throws this error
Object reference not set to an instance of an object.
Why is that? why isn't it redirecting? how can I fix it?
private int BusinessNameId