Php redirect page if first visit from client

Discussion in 'PHP' started by baddah, Jun 20, 2007.

  1. #1
    Hi,I am trying to set up the following.

    We are directing all our http traffic to a webserver,that checks if the client has been browsing today.If not,we want to redirect him to our website,else we want to pass on his url.In other words..New Client enters,say http://forums.digitalpoint.com,but he gets redirected to our website.After that,if he enters ANY url,he gets forwarded to that url,an not our website.

    I tried to set this up using cookies,but my problem is that the cookies are url based,so every time the client enters a url for the first name,het gets directed to our website,and then the cookie gets stored with the url,so any subsequent calls to that url will bring up the desired site.But obviously i do not want that,is their a way to set a general browser cookie that will be valid for any urls entered in the browser,or anything to that effect?

    Any other ideas how i might implement this?

    Thanks
     
    baddah, Jun 20, 2007 IP