Discussion board
How to start a PHP SESSION?
By Arun Desai
How to start a PHP SESSION?????
Reply
Post   Reset
Teacher SiliconIndia replied to Arun Desai Wednesday, March 17, 2010
Hi Arun,
Before you can store user information in your PHP session, you must first start up the session.
Note: The session_start() function must appear BEFORE the <html> tag:
<?php session_start(); ?>
<html>
<body>
</body>
</html>
The code above will register the user's session with the server, allow you to start saving user information, and assign a UID for that user's session.