PHP login with session. In this article we will learn how to display a username along with his/her photo stored in the database after successful login. To utilize the MM_Username session variable on the pages in your site, open the login page in Dreamweaver. UserName; I have also think about your second Idea:"it's a good idea to use AJAX to call a server-side method returning the logged in username." The markup is really weird at first. In this article we will learn how to display corresponding details of a user after successful login. I'm just a beginner with PHP. In our example, we have a login form with two input fields i.e. Simple and straightforward, yet still very impactful and attention-grabbing. Here I am providing the code to get the Login Page. Join Date: Aug 2013 . Display PC username after login. How To Create a Login Form Step 1) Add HTML: Add an image inside a container and add inputs (with a matching label) for each field. After successful login the control moves to the details page where all the information of that user is displayed.Table CreationNow let's move to the code.Login.aspx, <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Login_related_details.Login" %>, , ,