Jump to content

supertooper

New Members
  • Posts

    3
  • Joined

  • Last visited

supertooper's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. LeJack I'm not worried about the cookies expiring since the cookies will expire in 30 seconds so if the user does not visit the site through a specific link, the cookie will not be set and they will be redirected to page-c.php ill test this out and see if this is what I want but im I just want to create a URL that will expire after 30 seconds.. if the user is still on the page thats fine, but i dont want new users or even the user that visited the original page to be able to visit the same page again.. So if they do visit the page again, I want it to redirect
  2. A little confusing and I didn't understand the timestamp part but I'll explain how I have it setup currently and maybe that will help I have it setup like this: 1. User visits http://example.com/page-a.php - A 30 second cookie called "setcookie" is set then the user is redirected. 2. Step 1 redirects user to http://example.com/page-b.php after the cookie is set - The browser checks for "setcookie" and if the cookie is not set, redirects user to http://example.com/page-c.php I'm trying to achieve this same setup without cookies by using a unique id in the url 1. every user is given a unique id such as: http://example.com/page.php?userid=0000000001 - is this possible? It's important that the URL changes for each user 2. If the url http://example.com/page.php?userid=0000000001 has been created within 30 seconds, display the content.. if not then i want to redirect the user with header(); Is it possible this way? I'm trying to get this to work without needing a page before the http://example.com/page.php?userid=0000000001 page
  3. Hello! I am trying to display content that will only be displayed for 30 seconds to each visitor. I want to have a unique ID given to each user that visits my page and also add that assigned ID to the end of the URL. If the page is loaded again after 30 seconds, I want the unique user ID to redirect using header(); So When a suer visits my page, I want the end of the url to have “userid=“ like this: http://example.com/page.php?userid=0000000001 If that user comes back to the same url after 30 seconds, I want to redirect using header(); How do I do this? what is the best way?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.