If I understand what you mean by making sure the session variable is set, i.e., "HRappName", it is, I think. This error will not happen after the first time logging in. In other words, once the user logs in for the first time EVER, say, today, he can log in tomorrow or the next day and...