Tag: cookie
-
Post Views: 16 1. In the program, whether it is a preview mode is implemented based on session. But when the user logs out, it will also automatically exit the preview mode. as shown in Figure 1 2. The performance of exiting the preview mode is that the preview banner at the bottom of the page has disappeared. as shown…
-
Post Views: 60 1. Now the local environment URL: http://morefun.dev.dev.xxx.cn/ I want to get the cookie data under the development environment: https://.xxx.cn, but found that it cannot be obtained. The reason is the difference between HTTP and HTTPS. 2. Configure the URL in the local environment: https://morefun.dev.xxx.cn/ . 3. Reference URL: https://web.dev/how-to-use-local-https/ . How to use HTTPS for local development.…
-
Post Views: 15 1. The client-oriented API is browser, and the public parameters: login_id, login_tid, its request type is get, and its value comes from cookies under the pan top-level domain name, as shown in Figure 1 2. According to the requirements of front-end developers, the implementation of cookies supported by the API (not recommended). Unlike web applications, RESTful APIs…
-
Post Views: 11 1. The request code of $.getjson is shown in Figure 1.0 2. Check the network and find that in the response cookie, a new phpssssid is generated, as shown in Figure 1.1 3. Add to the request address of $.getjson: &callback=?, which is equivalent to setting the request format to jsonp, as shown in Figure 1.2 4.…
-
Post Views: 12 1. Baidu webmaster platform page optimization suggestion: use cookies reasonably 2. Reason analysis: static file domain name static.ygt.cm and the current page URL zhidao.ygt.cm are the same top-level domain name 3. Set the domain name of the static file to static.hmwis.com, then the number of problems with reasonable use of cookies changes from 41 to 1 4.…
-
Post Views: 10 Because the session has been automatically started, the session initialization setting has not been implemented; resulting in ini_set(session.gc_maxlifetime, $name[‘expire’]);ini_set(session.cookie_lifetime, $name[‘expire’]), and none of them can be set, so the session can basically be determined to be temporarily unresolved; It has to start from the cookie aspect, although there are certain security problems, so it is necessary to…