I need help. I need to create a session id when a user visits a page for the first time and them redirect them to another url if that user visits that page again. Can anyone show me how to do this?
Thanks in advance
Nick
[code=php]<?php session_start(); if(isset($_SESSION['AlreadyVisited'])){ header('location: elsewhere.php'); exit; }; $_SESSION['AlreadyVisited'] = 'set'; ?>[/code]
Help @ngreve spread the word by sharing this article on Twitter...