Redirect After Security LogIn not working
I have set up a page where users can login and then be redirected to their school yearbook as a product. I have it setting a session variable "school_PID" but it doesn't work properly. It redirects to Products_Detail.php?ProductID= the first time because the session variable is not set. If you go back and login again then the session variable is set and it redirects properly. I checked the code and the session variable is set right before the redirect so I don't know why it's not functioning properly. I've attached the file, please take a look and see if you can see what's wrong. Thanks for your time.