The application can log on. Why did I add the automatic logon part (first line 1-15)? the system does not display the logon page after detecting the user information. please take a look. thank you.

Source: Internet
Author: User
The application can log on. Why did I add the automatic logon part (first line 1-15)? the system does not display the logon page after detecting the user information. please take a look. thank you. Include ('connect. php ');
Include ('loginchg. php ');
// Determine Whether automatic logon is selected before logon.
$ 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 log on if the session variable name matches the password
Header ('Location: http: // localhost/index. php ');
Exit;
}
?>




User Login



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.