Thread: Login Page with session
Results 1 to 2 of 2
Related
-
auto increment session variable name? Forum: PHP Forum
Replies: 1 -
Login Page Forum: HTML Forum
Replies: 1 -
creating a login page Forum: CGI Perl Forum
Replies: 0 -
Cookies Session Help Forum: Website Scripts Forum
Replies: 8
-
09-27-2007, 02:27 AM #1
Login Page with session
I have made a login page
Code:<%@ Page Language="VB" %><script runat="server"> Sub Page_Load() If Page.IsPostback Session("Name")= txtName.Text Session("Password")= txtPassword.Text End If End Sub </script> <html><head> <title>Login</title></head><body> <br/> <form runat="server"> Please enter your name: <asp:TextBox id="txtName" runat="server"></asp:textbox> <br/> Please enter your password: <asp:TextBox id="txtPassword" type="password" runat="server"></asp:textbox> <br/> <input type="submit" value="Login" /> </b><p> </form></body></html>
And also how can I include the session method?
-
10-26-2007, 02:41 AM #2
Re: Login Page with session
Session("Name")= txtName.Text
Session("Password")= txtPassword.Text
if(txtName == 'john' & txtPassword == 'john')
{
write your code here.
}
the name john and password john are just given static values you can also give values from database.
thanks
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum