Here is my scenario:
Users opens IE and home page loads based on our group policy in that page I need the following to happen:
1) creates a cookie with an expiration date of 30 days
2) checks to see if cookie is set, if it is set and its has been > or = to 30 days then it checks the users IP address. If the users IP address is an internal IP address it then redirects them to our Intranet site, if IP address is external it redirects them to an external site.
3) If the cookie is older than 30 days, say day 31, then a pop up message pops up notifying them of an event and then checks their IP, if IP is an internal IP then user is redirected to Intranet Site, if the IP is external then it redirects them to a external site
I think I have the cookie working in PHP, and the redirect script seems to work to, but when you combine the cookie script, conditional script of checking if the cookie is set and if it is less than, equal to, or greater than 30 days, then checking IP and redirecting it all goes to crud.
PHP is all kinda new to me so I am trying to wrap my hands around it. This is all hosted on an IIS server too if that matters.
Thanks in advance, Gym