The program can be logged in the original, why I added the automatic login section (the front 1-15 lines), the system does not detect the user profile after the login interface out, please help to see, thank you

Source: Internet
Author: User
The program can be logged in the original, why I added the automatic login section (the front 1-15 lines), the system does not detect the user profile after the login interface out, please help to see, thank you
Include (' connect.php ');
Include (' loginchg.php ');
Before you log in, determine if you have selected automatic login
$query = "SELECT * from Netoa.users where urname= ' {$_session[' Username ']} ' and urpassword= ' {$_session[' Password ']} '";
Oci_free_statement ($stmt);
$stmt =oci_parse ($conn, $query);
$result = Oci_execute ($stmt);
if ($ruselt)
{
Automatically login if session variable name matches password
Header (' location:http://localhost/index.php ');
Exit
}
?>




<title>User Login</title>
















br>
















system

Department

copyright©2012









  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.