Certify and Increase Opportunity.
Be
Govt. Certified PHP-Developer

Session Creation

Before you can store user information in your PHP session, you must first start up the session.

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.