How to access _SESSION in html?

sid s

New member
I have a php file that checks for the user's login info and sends him to a html page. I want to display his username on the page. How can the html page read the session info that I set in the PHP?

Setting session variable Inside login.php
session_start()
$_SESSION['username']=$username
 
Back
Top