In this sub-section uses session this time we will try to use the session to give specific permissions to users who have access to such relates in simple.
Description:
Because the session has dicreate by admin username means conditioning if
met so that it will run a script that is inside the if.
Display of the script above is:
In addition to sessions that we create with the name of the session we set
itself usually otamatis server will create a unique id during session establishment process. By ps can we maanfaatkan for many things. Because of its unique and are not set by the programmer it will be too difficult to memorize. So it will be more secure from hacking process. But id rather unfortunate that generated by the IIS only a few characters, this is far less than PHP. If we want safer again we encode it again id. To encode can be done in many ways. Here's how to see id's
owned by the user:
<html>
<head>
<title>verifiksi user</title>
</head>
<br>
<b>Welcome</b>
<br>Nama : <%Response.Write(Session("username"))%>
<br>Umur : <%Response.Write(Session("umur"))%>
<br>Tipe : <%Response.Write(Session("tipe"))%>
<br><b>user dengan nama diatas memiliki id : </b>
<br>Session ID : <%Response.Write(Session.SessionID)%> <body>
</body>
</html>
Description:
Because the session has been in with the username admin create the conditioning means that if met will run the script that is inside the if.