Cookie error
Posted: Tue Mar 20, 2012 4:46 am
Hi, when i open my admin log in section using correct username and password it displays the members list and everything whatever i have included, but the problem is when i copy the url of the page after log in and paste it in other browser it displays the contents of that page, so there is no authentication or authorization anybody can copy-paste and view the details,if anybody knows the soln for this please help me....
this s my code...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="../gen_validatorv4.js" type="text/javascript"></script>
</head>
<body>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="myform" method="post" action="member_checklogin.php" id="myform">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#E4E4E4">
<tr>
<td colspan="3"><strong> Login </strong><div class='short_explanation'>(<span style="color:#F00">*</span>required fields)</div></td>
</tr>
<tr>
<td width=78 bgcolor="#E4E4E4">Username</td>
<td width=6 bgcolor="#E4E4E4">:<span style="color:#F00">*</span></td>
<td width="294"><input name="username" type="text" id="myusername"></td>
</tr>
<tr>
<td bgcolor="#E4E4E4">Password</td>
<td bgcolor="#E4E4E4">:<span style="color:#F00">*</span></td>
<td><input name="password" type="password" id="mypassword"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><label>
<input type="submit" name="Submit" value="Login">
</label></td>
</tr>
<!--<tr>
<td> </td>
<td colspan="2"><a href="forgot-password.php">Forgot Password</a> | <a href="register.php">Register</a></td>
</tr>-->
</table>
</td>
</form>
</tr>
</table>
<script type="text/javascript">
var frmvalidator = new Validator("myform");
frmvalidator.addValidation("username","req","Please enter your username");
// frmvalidator.addValidation("CompanyName","maxlen=20",
// "Max length for Name is 20");
//frmvalidator.addValidation("LastName","req");
// frmvalidator.addValidation("LastName","maxlen=20");
frmvalidator.addValidation("password","req","Please enter your password");
//frmvalidator.addValidation("BEmail","maxlen=50");
// frmvalidator.addValidation("BEmail","req");
// frmvalidator.addValidation("BEmail","email");
// frmvalidator.addValidation("Phone","maxlen=50");
// frmvalidator.addValidation("Phone","numeric");
//frmvalidator.addValidation("Address","maxlen=50");
// frmvalidator.addValidation("Country","dontselect=000");
</script>
</body>
</html>
this s my code...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="../gen_validatorv4.js" type="text/javascript"></script>
</head>
<body>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="myform" method="post" action="member_checklogin.php" id="myform">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#E4E4E4">
<tr>
<td colspan="3"><strong> Login </strong><div class='short_explanation'>(<span style="color:#F00">*</span>required fields)</div></td>
</tr>
<tr>
<td width=78 bgcolor="#E4E4E4">Username</td>
<td width=6 bgcolor="#E4E4E4">:<span style="color:#F00">*</span></td>
<td width="294"><input name="username" type="text" id="myusername"></td>
</tr>
<tr>
<td bgcolor="#E4E4E4">Password</td>
<td bgcolor="#E4E4E4">:<span style="color:#F00">*</span></td>
<td><input name="password" type="password" id="mypassword"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><label>
<input type="submit" name="Submit" value="Login">
</label></td>
</tr>
<!--<tr>
<td> </td>
<td colspan="2"><a href="forgot-password.php">Forgot Password</a> | <a href="register.php">Register</a></td>
</tr>-->
</table>
</td>
</form>
</tr>
</table>
<script type="text/javascript">
var frmvalidator = new Validator("myform");
frmvalidator.addValidation("username","req","Please enter your username");
// frmvalidator.addValidation("CompanyName","maxlen=20",
// "Max length for Name is 20");
//frmvalidator.addValidation("LastName","req");
// frmvalidator.addValidation("LastName","maxlen=20");
frmvalidator.addValidation("password","req","Please enter your password");
//frmvalidator.addValidation("BEmail","maxlen=50");
// frmvalidator.addValidation("BEmail","req");
// frmvalidator.addValidation("BEmail","email");
// frmvalidator.addValidation("Phone","maxlen=50");
// frmvalidator.addValidation("Phone","numeric");
//frmvalidator.addValidation("Address","maxlen=50");
// frmvalidator.addValidation("Country","dontselect=000");
</script>
</body>
</html>