PHP SOLUTIONS: DYNAMIC WEB DESIGN MADE EASY If (Web site management)
PHP SOLUTIONS: DYNAMIC WEB DESIGN MADE EASY If $_SESSION[’name’] has been set, the page displays it, then unsets it and invalidates the current session cookie. By placing session_destroy() at the end of the first code block, the session and its associated variables will cease to be available. 6. Load session01.php into a browser, and type your name in the text field. Click Submit. 7. You should see something like the following screenshot. At this stage there is no apparent difference between what happens here and in an ordinary form. 8. When you click Next, the power of sessions begins to show. The page remembers your name, even though the $_POST array is no longer available to it. There s a problem, though, with that headers already sent error message. We ll fix that later. 9. Click the link to Page 2 (just below the error message). The session has been destroyed, so this time session02.php has no idea who you are. 10. Type the address of session03.php in the browser address bar and load it. It, too, has no recollection of the session, and displays an appropriate message.
If you are looking for cheap and quality webhost to host and run your website check Jboss Web Hosting services.