Session_start (), which has been solved for four days. in fact, there are a lot of solutions on the Internet, and many people in the Forum can answer such questions. But in the end, I still run the PHP code on my friend's computer. After confirming
Document directory
Principle: point the image SRC to a CFM file, use the Java function in the CFM file to create an image that displays the verification code, and record the session variable. After you enter the verification code, compare it with
Session highlights
For the PHP session function, there is always no suitable answer, especially some errors, and there are some no error results. The most terrible thing is the latter, which has always been difficult for many beginners. Some
NextArticleThis is excerpted from a newsgroup. The source is unknown. See the following section.:
The browser's back button makes it easy for us to return to previously accessed pages, which is undoubtedly very useful. But sometimes we have to
No way. You need to write some asp files.
Code Depressed. Put a function table for future reference.
VBScript (ASP) common functions:
1. Numeric functions:
ABS (Num): returns the absolute value.SGN (Num): num> 0 1; num = 0 0; num Hex (Num):
QuerystringUsing querysting to pass values between pages is already a very old mechanism. The main advantage of this method is that it is very simple to implement, however, its disadvantage is that the passed value is displayed on the address bar of
I. Use querystring
Using querystring to pass values between pages is a very common method, which is often used in ASP.
(1) advantages and disadvantagesAdvantages:1. Easy to use. It is very effective for passing numbers or text values when
1. Cookie
1. PHP supports HTTP transparentlyCookie. Cookie is a mechanism for storing data in a remote browser and tracking and identifying users. AvailableSetcookie ()OrSetrawcookie ()Function to set the cookie. Cookie is HTTPHeader, soSetcookie
QuerystringUsing querysting to pass values between pages is already a very old mechanism. The main advantage of this method is that it is very simple to implement, however, its disadvantage is that the passed value is displayed on the address bar of
1. What is Cookie?
Cookie is a mechanism for storing data in a remote browser and tracking and identifying users.
2. COOKIE Mechanism
Web applications transmit data over HTTP. HTTP is a stateless protocol. Once the data exchange is complete, the
Session_start ()This function indicates that the session needs to be used on this page. If this function is not used, other functions and session variables may fail to be used normally, similar to the initialization function.
Session_register
1. Use querystring, such ....? Id = 1; response. Redirect ()....
2. Use session Variables3. Use server. Transfer4. Application5. 6. Database
Querystring
Using querysting to pass values between pages is already a very old mechanism. The main
--------------------------------------------------------------------------------
The browser's back button makes it easy for us to return to previously accessed pages, which is undoubtedly very useful. But sometimes we have to disable this function
For example, set the MySQL instance parameter wait_timeout to 10 seconds.
1) method 1 for setting global variables (not recommended): Modify the parameter file and restart mysqld.
# Vi/etc/My. CNF
[Mysqld]
Wait_timeout = 10
# Service mysqld
Testcookies.asp
' Check to see if the browser accepts Cookies.
Strtest = Request.QueryString ("CookieTest")
If UCase (strtest) <> UCase ("true") Then
Session ("__flashcookietest") = True
' first call . Sets the session variable .
PHP server-side default session storage is the way in which files are stored, and on WINDOWS, PHP's default sessions server file is stored under C:/windows/temp, *nix under the default storage in/TMP, If concurrent access is large or the session is
resquest.querystring--string used for session--is used within this application.
application--the public for all startup applications.
cookies--writes the Dongdong to the client
cache--local applications do not want to cache data for a certain amount
Button | disable | browser
The Back button of the browser allows us to easily return to the pages we visited before, and it is certainly useful. But sometimes we have to turn this feature off to prevent users from disrupting the scheduled page
Original: Kevin Yank from: www.linuxforum.net (congratulations on the opening again)
For a long time, one of the biggest selling points of PHP as a server-side scripting language is the automatic creation of a global variable for the value
But generally speaking, the commonly used simpler has the querystring,session,cookies,application,server.transfer.
First, QueryStringQueryString is a very simple way of passing values, and he can display the value of the transfer in the browser's
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.