, the user submits the login information when the user fills in the user name and the password, submits here.
/**
Detection of user-submitted login information
link:http://bbs.it-home.org
*/
$username = Trim ($_post[' username ');
$password = MD5 (Trim ($_post[' password '));
$validatecode = $_post[' Validatecode ');
$ref _url = $_get[' Req_url ');
$remember = $_post[' remember ');
$err _msg = ";
if ($validatecode!
)) {//If the user chooses, log the login status and put the username and secret password into the cookie
Setcookie ("username", $username, Time () +3600*24*365);
Setcookie ("Password", $password, Time () +3600*24*365);
}
if (Strpos ($ref _url, "login.php") = = = = False) {
Header ("Location:". $ref _url);
}else{
Header ("location:main_user.php");
}
}
}
Third, when the user points out, clear record log in s
current directory of the cookie.
Domain
Valid Domain Name of the cookie
This parameter should be set'.Example.com'. Although.Not required, but it will be compatible with more browsers. If this parameter is setWww.example.comInWWWValid in the subdomain. For details, seeCookie SpecificationIn.
Secure
Indicates whether the cookie is transmitted only through a secure HTTPS connection. When setTrueThe cookie is only set in secure connections. The default value isFalse.
Use the Oracle dbms_random function to quickly generate multiple test data entries.
Database development or management personnel often need to create a large amount of test data, and tens of thousands of data records are required. If one data entry is required, it will waste a lot of time, this article describes how to quickly generate a large amount of test data using an SQL statement in Oracle.
First, simulate 100 random data records.
select rownum as id, to_char(sysdate + rownum / 24
Public role permission. You can use the following statement to authorize and revoke permissions:
REVOKE CONNECT ON ENDPOINT::[TSQL Default TCP] to [public]; GRANT CONNECT ON ENDPOINT::[TSQL Default TCP] to [a_specific_login];
English translation assistance (1)
1. The xStack DGS-3400 and DGS-3600 series are the next generation gigabit switches that provide high performance, unparalleled flexibility, security, increased availability, and IPv6 supp
First, let's take a look at the instructions on deleting cookies in the php Manual.Bool setcookie (string name [, string value [, int expire [, string path [, string domain [, bool secure])To delete a cookie, you must ensure that its expiration time is in the past to trigger the deletion mechanism of the browser.The following example shows how to delete the cookie you just set: Example 2. setcookie () DeleteExample The code is as follows:Copy code // Set the expiration time to one hour a
there are 0.1 million users, the server requires that each client should report to the server at least once within 3600 seconds, otherwise the server will be canceled.
The client is registered every 60 seconds.
Therefore, it is estimated that within 3600 seconds, each client will report at least one successful report, which is the minimum standard. Only 0.1 million users will be able to be eaten by the ser
()//PlayM_objmediacontrol.pause ()/PauseM_objmediacontrol.stop ()/StopOK, how do we control the time schedule?//private void Timer1_Tick (object sender, System.EventArgs e){if (M_currentstatus = = mediastatus.running){Updatestatusbar ();}} See the above Updatestatusbar (); This is to let it not 100ms update the status bar. The code is as follows: private void Updatestatusbar () { switch (m_currentstatus) { case mediastatus.none: Statusbarpanel1.text = " Stopped "; Break Case MediaStat
Set and delete cookies in PHP we use Setcookie to set them up and automatically delete them when they expire, but under FF you may encounter cookies that cannot expire.
First, let's take a look at the instructions in the PHP manual for deleting cookies.
BOOL Setcookie (string name [, string value [, int expire [, String path [, string domain [, bool secure]]])
To delete a cookie, you need to ensure that its expiration period is in the past before it triggers the browser's removal mechanism.The f
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.