Session 1 and session Status:
1. Web application session refers to a series of consecutive requests and responses between a client browser and the web server, knowing that the window is closed.
2. the session Status of a Web application is the
Application
1. The application is used to save information shared by all users.
2. In the ASP era, if you want to store data in applicationsProgramApplication is an ideal choice if no or few changes occur during the lifetime. However, in the Asp.
This article does not discuss session or cookie. Many websites now talk about cookie-based session. The advantages and disadvantages of cookie-based session are discussed below:Advantages:1. Reduce the pressure on the server. For example, PHP
In frameset, where the frame is from a third party site (different IP or different domain name), then by default IE will automatically disable the cookies of these sites, that is, when a URL is requested in the HTTP header does not send their
The most recent problem with multiple file uploads has been the Multifile.js plugin with jquery, but because the plugin can't show the progress bar, the project is actually essential to the progress bar
Plus really is not willing to spend time to
Instance 11: displays the date stamp and dateCopy codeThe Code is as follows:Echo time (); // returns a string of timestamp in seconds.Echo " ";Echo date ("Y-m-d H: I: s", time () + 8*3600); // format time, + 8*3600 to China time ZoneEcho " ";$ Str =
Application1. Application is used to save information shared by all users. When IIS is stopped, it is initialized.2.In the ASP era, it is ideal to use application if the data to be stored does not or rarely change during the lifetime of the
1. (1). the user outputs the URL address to effectively access a website and perform a series of valid operations on the website. Then, the entire process of closing the browser is called a session.(2) sessions mainly solve how the server stores the
1. Application: used to save data shared by all users. Similar configuration data in ASP. NET is best stored in the web. config file. If the application object is used, a problem to be considered is that any write operation must be completed in
Viewstate
The value of viewstate is stored in the HTML of the browser.
CodeWhen the browser is closed, the value disappears, that is, viewstate is passed between functions on this page. Why is this method used? Because after an event occurs, the
I. Use querystringUsing 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 security
Application1. application is used to save information shared by all users. 2. In the ASP era, it is ideal to use application if the data to be stored does not or rarely change during the lifetime of the application. However, in the Asp.net
Instance 11: displays the date stamp and date
Copy codeThe Code is as follows: Echo time (); // returns a string of timestamp in seconds.
Echo " ";
Echo date ("Y-m-d H: I: s", time () + 8*3600); // format time, + 8*3600 to China time Zone
Echo " ";
$
A. Cookies
1>cookie Introduction
Cookies are data stored in the client browser and can be used to track and store user data through cookies. In general, cookies are returned from the server to the client via Httpheaders. Most Web programs
Web site development, is now popular with the server's own session and cookie mechanism, or popular custom implementation of a set of session and cookie mechanism, if the use of custom session and cookie mechanism, How do you design this session and
You will find that you only need to check this box when logging on (ps: it is best to use label + for your prompt text ), even if you close your browser and re-open it again or "logged on", you may also know that most websites use session record
Session The code is as follows:Copy code Session_start (); // The session will expire immediately after the browser is closed. You need to declare it to read and write the session.$ _ Session ['id'] = 'server'; // This is the declaration and
========================================================== ==========================================================
1. Application: Used to save data shared by all users. Similar configuration data in Asp. Net is best stored in the Web. config
The following JS code output all the cookie key value control
1 2 3 4 5 6 7 8 9
Cookies associated with this document:
The output results are as follows on the machine;Code as follows: Cookies associated with this
Session
The Chinese translation of the session is "conversation", and when a user opens a Web application, it generates a time with the Web server. The server uses session to temporarily save the user's information on the server, the user leaves
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.