CN104104649B - Method, device and system for page login - Google Patents

Method, device and system for page login Download PDF

Info

Publication number
CN104104649B
CN104104649B CN201310113141.XA CN201310113141A CN104104649B CN 104104649 B CN104104649 B CN 104104649B CN 201310113141 A CN201310113141 A CN 201310113141A CN 104104649 B CN104104649 B CN 104104649B
Authority
CN
China
Prior art keywords
short url
address
coding
login
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310113141.XA
Other languages
Chinese (zh)
Other versions
CN104104649A (en
Inventor
朱志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201310113141.XA priority Critical patent/CN104104649B/en
Priority to TW102132565A priority patent/TWI629890B/en
Priority to US14/224,862 priority patent/US9450883B2/en
Priority to PCT/US2014/032055 priority patent/WO2014165391A1/en
Priority to JP2016506337A priority patent/JP6125715B2/en
Priority to EP14725839.6A priority patent/EP2982093B1/en
Publication of CN104104649A publication Critical patent/CN104104649A/en
Application granted granted Critical
Publication of CN104104649B publication Critical patent/CN104104649B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/672Short addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/301Name conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/04Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A kind of method of page login, apparatus and system.This method includes:Parent page address is encoded, the short url addresses containing the coding are generated;Manage short url addresses and obtain the login service device address for including short url addresses, login is realized to jump to login service device;Preserve coding and the corresponding relation of parent page address;Returned after logining successfully with short url addresses and be based on coding and corresponding relation, obtain parent page address to conduct interviews to the page.Its apparatus and system correspondence implements the above method.According to the technical scheme of the application, when carrying out page login will not because of user to access pages address it is long caused by login failure or occur the problem of redirect unsuccessfully, substantially increase the success rate for logging in and redirecting, improve Consumer's Experience.

Description

页面登录的方法、装置及系统Method, device and system for page login

技术领域technical field

本申请涉及计算机网络领域,尤其涉及网络访问时,页面登录的方法、装置及系统。The present application relates to the field of computer networks, in particular to a method, device and system for page login during network access.

背景技术Background technique

人们日常对页面进行浏览时,有时会遇到需要登录才能继续浏览的情况,如果检测到用户为未登录状态,那么浏览器就会跳转到登录界面,完成登录后返回用户所要浏览的原始页面。现有用户对网页访问请求的网络处理流程为如图3所示。用户处于未登录状态,使用客户端浏览器访问需要登录的页面:客户端浏览器发起http请求;服务器接收用户请求的页面,如网站服务器/页面服务器等,服务器收到请求的页面后,会判断用户是否已登录,当该用户处于未登录状态时,将用户请求页面的页面地址作为参数外部重定向到登录服务器,即将url作为参数外部重定向,跳转到登录服务器后,使用户完成登录,并且,在用户完成登录后再外部重定向回到用户请求的页面;最后向客户端浏览器返回用户结果,进行页面访问。When people browse the page every day, sometimes they need to log in to continue browsing. If it is detected that the user is not logged in, the browser will jump to the login interface and return to the original page that the user wants to browse after completing the login. . The network processing flow of the existing user's web page access request is shown in FIG. 3 . The user is not logged in, and uses the client browser to access the page that needs to be logged in: the client browser initiates an http request; the server receives the page requested by the user, such as a website server/page server, etc. After receiving the requested page, the server will judge Whether the user is logged in, when the user is not logged in, the page address of the page requested by the user is used as a parameter to externally redirect to the login server, that is, the url is used as a parameter to externally redirect, and after jumping to the login server, the user completes the login. And, after the user completes the login, the external redirection returns to the page requested by the user; finally, the user result is returned to the client browser for page access.

在实际的情况当中,浏览器对url(网页地址)的长度是有限制的,即访问的url不能过长。多数网站有自己的登录服务器,来统一地处理网站用户的登录行为。当用户需要访问的页面是必须要登录后才能访问的页面时,网站一般会将未登录的用户访问跳转到登录服务器上。在让用户完成登录行为后再跳转回用户要求访问的页面(用户请求的实际/原始页面)。而为了完成这个跳转,用户在跳转到登录服务器的时候必须要带上原有访问的页面地址,以便登录服务器知道完成登录后应该回跳到哪个地址。如果用户访问的原始页面其本身url就很长,而作为参数时,又必须将原有的url拼接到一个新的url上,即a+b=ab。这个时候就有可能超出浏览器对url长度的限制,则此时浏览器会丢失实际的新url(ab),而登录服务器不能获取对应原始页面的完整的url,从而导致登录服务器往回跳转(重定向回用户请求页面)出现失败或者说登录失败。这样,即使能够跳转登录界面也有可能因为信息不全而无法完成登录,或完成登录后无法跳转回原页面,这些都大大影响了用户的使用,不能达到良好的用户体验。In actual situations, browsers have restrictions on the length of url (web page address), that is, the accessed url cannot be too long. Most websites have their own login servers to uniformly handle the login behavior of website users. When the page that the user needs to visit is a page that must be logged in, the website generally redirects the access of the user who is not logged in to the login server. After letting the user complete the login behavior, jump back to the page that the user requested to visit (the actual/original page requested by the user). In order to complete this jump, the user must bring the address of the original visited page when jumping to the login server, so that the login server knows which address to jump back to after completing the login. If the url of the original page visited by the user is very long, and when used as a parameter, the original url must be spliced into a new url, that is, a+b=ab. At this time, it is possible to exceed the browser's limit on the length of the url. At this time, the browser will lose the actual new url (ab), and the login server cannot obtain the complete url corresponding to the original page, which will cause the login server to jump back. (redirected back to the user request page) failure or login failure. In this way, even if you can jump to the login interface, you may not be able to complete the login due to incomplete information, or you may not be able to jump back to the original page after completing the login, which greatly affects the use of the user and cannot achieve a good user experience.

综上所述,现有技术中,存在登录服务器因为用户访问用的地址url过长而导致登录失败或跳转失败的缺陷,因此有必要提出改进的技术方案解决上述问题。To sum up, in the prior art, there is a defect that the login server fails to log in or redirect because the address url used for user access is too long. Therefore, it is necessary to propose an improved technical solution to solve the above problems.

发明内容Contents of the invention

本申请为克服上述缺陷,提供一种页面登录的方法和装置,解决在页面登录时会因为地址长度过长而导致登录失败或跳转失败的问题。In order to overcome the above defects, the present application provides a method and device for page login, which solves the problem of login failure or jump failure due to too long address length during page login.

根据本申请的一个方面,提供一种页面登录的方法,该方法包括:对原始页面地址进行编码,生成含有所述编码的短url地址;管理所述短url地址,获得包含所述短url地址的登录服务器地址,以跳转到登录服务器实现登录;保存所述编码与原始页面地址的对应关系;登录成功后以所述短url地址返回并基于所述编码和所述对应关系,获取所述原始页面地址以对页面进行访问。According to one aspect of the present application, a method for page login is provided, the method comprising: encoding the original page address, generating a short url address containing the encoding; managing the short url address, and obtaining the short url address containing the short url address The address of the login server, to jump to the login server to achieve login; save the correspondence between the code and the original page address; return with the short url address after successful login and based on the code and the correspondence, obtain the Original page address to access the page.

根据本申请实施例的方法,其中,所述对原始页面地址进行编码包括:使用MD5算法对原始页面地址进行编码。According to the method of the embodiment of the present application, wherein said encoding the original page address includes: using MD5 algorithm to encode the original page address.

根据本申请实施例的方法,还包括:所述短url地址包含所述编码以及一短url管理系统的域名。The method according to the embodiment of the present application further includes: the short url address includes the encoding and a domain name of a short url management system.

根据本申请实施例的方法,其中,保存所述编码与原始页面地址的对应关系,包括:获取编码字符串作为标识,原始页面地址作为所述标识对应的值,将二者对应保存到一短url管理服务器的缓存中。According to the method of the embodiment of the present application, storing the correspondence between the code and the original page address includes: obtaining the code string as an identifier, and the original page address as the value corresponding to the identifier, and storing the two correspondingly in a short The url is in the cache of the management server.

根据本申请实施例的方法,其中,所述登录服务器地址包括:所述短url地址以及所述登录服务器的域名。According to the method of the embodiment of the present application, the login server address includes: the short url address and the domain name of the login server.

根据本申请实施例的方法,其中,登录成功后以所述短url地址返回并基于所述编码和所述对应关系,获取所述原始页面地址,包括:获取所述短url地址;从所述短url地址解析出所述编码;根据解析出的所述编码,从保存的所述对应关系中,找到与所述编码对应的原始页面地址。According to the method of the embodiment of the present application, wherein after the login is successful, the short url address is returned and based on the code and the corresponding relationship, obtaining the original page address includes: obtaining the short url address; The short url address is parsed to obtain the code; according to the parsed code, the original page address corresponding to the code is found from the stored correspondence.

根据本申请实施例的方法,其中,含有所述编码的短url地址包括所述编码及一短url管理服务器的域名;基于所述短url地址重定向到所述短url管理服务器;管理所述短url地址,获得包含所述短url地址的登录服务器地址包括:所述短url管理服务器将所述短url地址作为参数与登录服务器的域名组合,以生成登录服务器地址。According to the method of the embodiment of the present application, wherein the short url address containing the code includes the code and a domain name of a short url management server; based on the short url address, redirect to the short url management server; manage the For the short url address, obtaining the login server address including the short url address includes: the short url management server combines the short url address as a parameter with the domain name of the login server to generate the login server address.

根据本申请实施例的方法,其中,登录成功后以所述短url地址返回并基于所述编码和所述对应关系,获取所述原始页面地址包括:所述登录服务器解析所述登录服务器地址获得所述短url地址,并以所述短url地址重定向到所述短url管理服务器,由所述短url管理服务器解析出所述短url地址中的所述编码,基于所述编码和所述对应关系找到原始页面地址。According to the method of the embodiment of the present application, wherein after the login is successful, the short url address is returned and based on the code and the corresponding relationship, obtaining the original page address includes: the login server parses the login server address to obtain The short url address is redirected to the short url management server with the short url address, and the short url management server parses out the code in the short url address, based on the code and the The corresponding relationship finds the original page address.

根据本申请的另一个方面,提供一种页面登录的装置,该装置包括:编码单元,对原始页面地址进行编码,生成含有所述编码的短url地址;短url管理系统,管理所述短url地址,获得包含所述短url地址的登录服务器地址,以跳转到登录服务器实现登录;保存所述编码与原始页面地址的对应关系;以及登录成功后基于所述短url地址中的编码和所述对应关系,获取所述原始页面地址以对页面进行访问。According to another aspect of the present application, there is provided a page login device, which includes: an encoding unit, which encodes the original page address, and generates a short url address containing the encoding; a short url management system, which manages the short url address, obtain the login server address that includes the short url address, so as to jump to the login server to realize login; save the corresponding relationship between the code and the original page address; The above corresponding relationship is obtained to obtain the original page address to access the page.

根据本申请实施例的装置,其中,所述编码单元使用MD5算法对原始页面地址进行编码。In the device according to the embodiment of the present application, the encoding unit encodes the original page address using the MD5 algorithm.

根据本申请实施例的装置,其中,所述编码单元生成的所述短url地址包含所述编码以及一短url管理系统的域名。In the device according to the embodiment of the present application, the short url address generated by the encoding unit includes the encoding and a domain name of a short url management system.

根据本申请实施例的装置,其中,所述短url管理系统,保存所述编码与原始页面地址的对应关系,包括:获取编码字符串作为标识,原始页面地址作为所述标识对应的值,将二者对应保存到一短url管理系统的缓存中。According to the device of the embodiment of the present application, wherein the short url management system saves the correspondence between the code and the original page address, including: acquiring the coded string as the identifier, and the original page address as the value corresponding to the identifier, and The two are correspondingly stored in the cache of a short url management system.

根据本申请实施例的装置,其中,短url管理系统中,所述登录服务器地址,包括:所述短url地址以及所述登录服务器的域名。According to the device of the embodiment of the present application, in the short url management system, the login server address includes: the short url address and the domain name of the login server.

根据本申请实施例的装置,其中,短url管理系统,基于所述编码和所述对应关系,获取所述原始页面地址,包括:获取所述短url地址;从所述短url地址解析出所述编码;根据解析出的所述编码,从保存的所述对应关系中,找到与所述编码对应的原始页面地址。According to the device of the embodiment of the present application, wherein the short url management system obtains the original page address based on the encoding and the corresponding relationship, including: obtaining the short url address; parsing out the short url address from the short url address the code; according to the parsed code, find the original page address corresponding to the code from the stored correspondence.

根据本申请实施例的装置,其中,还包括:编码单元,生成含有所述编码的短url地址包括:将所述编码及一短url管理系统的域名组合成所述短url地址,以基于所述短url地址重定向到所述短url管理系统;短url管理系统,管理所述短url地址,获得包含所述短url地址的登录服务器地址包括:将所述短url地址作为参数与登录服务器的域名组合,以生成登录服务器地址;登录服务器,完成登录后,解析所述登录服务器地址获得所述短url地址,并以所述短url地址重定向到所述短url管理系统;短url管理系统,解析出所述短url地址中的所述编码,基于所述编码和保存的所述对应关系,找到所述原始页面地址,以重定向到用户请求访问的页面。The device according to the embodiment of the present application further includes: an encoding unit, and generating the short url address containing the encoding includes: combining the encoding and a domain name of a short url management system into the short url address, based on the The short url address is redirected to the short url management system; the short url management system manages the short url address, and obtaining the login server address including the short url address includes: using the short url address as a parameter with the login server domain name combination to generate the login server address; the login server, after completing the login, resolves the login server address to obtain the short url address, and redirects to the short url management system with the short url address; short url management The system parses out the code in the short url address, finds the original page address based on the code and the stored correspondence, and redirects to the page requested by the user.

根据本申请的另一个方面,提供一种页面登录系统,包括:编码模块,对原始页面地址进行编码,生成含有所述编码的短url地址;短url管理模块,管理所述短url地址,获得包含所述短url地址的登录服务器地址,以跳转到登录服务器实现登录;存储模块,保存所述编码与原始页面地址的对应关系;返回及访问模块,登录成功后基于所述短url地址中的编码和所述对应关系,获取所述原始页面地址以对页面进行访问。According to another aspect of the present application, a page login system is provided, including: an encoding module that encodes the original page address to generate a short url address containing the encoding; a short url management module that manages the short url address to obtain The login server address comprising the short url address is used to jump to the login server to log in; the storage module saves the correspondence between the code and the original page address; the return and access module is based on the short url address after successful login The encoding and the corresponding relationship, and obtain the original page address to access the page.

根据本申请实施例的系统,其中,所述编码模块包括:使用MD5算法对原始页面地址进行编码。In the system according to the embodiment of the present application, the encoding module includes: encoding the original page address using the MD5 algorithm.

根据本申请实施例的系统,其中,所述编码模块生成的所述短url地址包含所述编码以及一短url管理系统的域名。In the system according to the embodiment of the present application, the short url address generated by the encoding module includes the encoding and a domain name of a short url management system.

根据本申请实施例的系统,其中,存储模块包含一缓存,与短url管理模块关联;存储模块保存所述编码与原始页面地址的对应关系包括:获取编码字符串作为标识,原始页面地址作为所述标识对应的值,将二者对应保存到所述缓存中。According to the system of the embodiment of the present application, wherein, the storage module includes a cache, which is associated with the short url management module; the storage module stores the corresponding relationship between the code and the original page address including: obtaining the code string as the identifier, and the original page address as the The value corresponding to the above identifier is stored in the cache correspondingly.

根据本申请实施例的系统,其中,短url管理模块中,所述登录服务器地址,包括:所述短url地址以及所述登录服务器的域名。In the system according to the embodiment of the present application, in the short url management module, the login server address includes: the short url address and the domain name of the login server.

根据本申请实施例的系统,其中,返回及访问模块,基于所述编码和所述对应关系获取所述原始页面地址,包括:获取所述短url地址;从所述短url地址解析出所述编码;根据解析出的所述编码,从保存的所述对应关系中,找到与所述编码对应的原始页面地址。According to the system of the embodiment of the present application, wherein the returning and accessing module obtains the original page address based on the encoding and the corresponding relationship, including: obtaining the short url address; parsing the short url address to obtain the Encoding: Find the original page address corresponding to the encoding from the stored correspondence according to the encoded encoding.

根据本申请实施例的系统,其中,所述编码模块,生成含有所述编码的短url地址包括:将所述编码及一短url管理系统的域名组合成所述短url地址,以基于所述短url地址重定向到所述短url管理系统;短url管理模块,管理所述短url地址,获得包含所述短url地址的登录服务器地址包括:将所述短url地址作为参数与登录服务器的域名组合,以生成登录服务器地址;返回及访问模块,完成登录后,解析所述登录服务器地址获得所述短url地址,并以所述短url地址重定向到所述短url管理系统;短url管理模块,解析出所述短url地址中的所述编码,基于所述编码和保存的所述对应关系,找到所述原始页面地址,以重定向到用户请求访问的页面。According to the system of the embodiment of the present application, wherein the encoding module, generating the short url address containing the encoding includes: combining the encoding and a domain name of a short url management system into the short url address, based on the The short url address is redirected to the short url management system; the short url management module manages the short url address, and obtaining the login server address including the short url address includes: using the short url address as a parameter and the login server's Combination of domain names to generate login server address; return and access module, after completing login, resolve the login server address to obtain the short url address, and redirect to the short url management system with the short url address; short url The management module parses out the code in the short url address, finds the original page address based on the code and the saved correspondence, and redirects to the page requested by the user.

与现有技术相比,根据本申请的技术方案,在进行页面登录时不会因为用户访问页面的地址过长而导致的登录失败或跳转失败的问题发生,大大提高了登录跳转的成功率,提升了用户体验。Compared with the prior art, according to the technical solution of the present application, when the page is logged in, the problem of login failure or jump failure caused by the address of the user accessing the page is too long will not occur, which greatly improves the success of login jump rate, improving the user experience.

附图说明Description of drawings

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:

图1是根据本申请实施例的一种页面登录方法的流程图;FIG. 1 is a flow chart of a page login method according to an embodiment of the present application;

图2是根据本申请实施例的一种页面登录装置的结构框图;Fig. 2 is a structural block diagram of a page login device according to an embodiment of the present application;

图3是现有技术中页面登录的流程时序图;FIG. 3 is a flow sequence diagram of page login in the prior art;

图4是根据本申请实施例的一种页面登录方法的流程时序图;以及FIG. 4 is a flow sequence diagram of a page login method according to an embodiment of the present application; and

图5是根据本申请实施例的方法的页面登录的功能模块系统示意图。Fig. 5 is a schematic diagram of a functional module system of page login according to the method of the embodiment of the present application.

具体实施方式detailed description

本申请的主要思想在于,利用短地址(短url)来替换原有的长url进行跳转,从而解决避免登录服务器跳转失败或者登录失败的问题。The main idea of this application is to use a short address (short url) to replace the original long url for jumping, so as to solve the problem of avoiding login server jumping failure or login failure.

为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the application clearer, the technical solution of the application will be clearly and completely described below in conjunction with the specific embodiments of the application and the corresponding drawings. Obviously, the described embodiments are only a part of the application Examples, not all examples. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

本申请的实施例针对现有技术中用户访问页面时的页面地址url过长导致登录失败或跳转失败的问题,提供一种页面登录的方法,图1是根据本申请实施例的一种页面登录的方法的流程图。用户未登录状态,使用浏览器访问需要登录的页面。The embodiment of the present application aims at the problem in the prior art that the page address url is too long when the user accesses the page, which leads to login failure or jump failure, and provides a method for page login. Figure 1 is a page according to the embodiment of the present application Flowchart of the login method. When the user is not logged in, use a browser to access the page that requires login.

在步骤S101处,获取到用户请求的原始页面地址url。该步骤是对原始页面地址进行编码之前,接收用户访问请求,以获取原始页面地址(如接收模块10的功能)。此步骤的操作,能由访问页面如页面登录装置200等的接收单元201实施。At step S101, the original page address url requested by the user is obtained. This step is to receive a user access request to obtain the original page address (such as the function of the receiving module 10 ) before encoding the original page address. The operation of this step can be implemented by the receiving unit 201 of the access page such as the page registration device 200 .

这个原始页面地址,例如,来自客户端浏览器的例如http请求,该原始页面地址可以是用户要访问(用户请求)的页面的地址url。这个原始页面地址对应的页面(例如相应的服务器),需要用户为登录状态才能访问。如果用户处于未登录状态时,则将需要跳转到登录页面进行登录操作,在完成登录操作后才能进行对该页面的访问。The original page address, for example, is an http request from the client browser, and the original page address may be the address url of the page that the user wants to visit (user request). The page corresponding to the original page address (such as the corresponding server) requires the user to be logged in to access. If the user is not logged in, it will need to jump to the login page to perform the login operation, and the page can only be accessed after the login operation is completed.

由于处于未登录状态则需要进行外部重定向,这里,为了保证重定向到登录服务器能登录成功,在获取到用户请求的原始页面地址后,在步骤S102中,对所述原始页面地址进行编码(编码模块20的功能),以生成含有所述编码的短url地址,避免由于过长的地址导致登录跳转出现失败。此步骤的操作,能由访问页面如页面登录装置200的编码单元202实施。Since it is not logged in, external redirection is required. Here, in order to ensure that the redirection to the login server can log in successfully, after obtaining the original page address requested by the user, in step S102, the original page address is encoded ( The function of encoding module 20) to generate a short url address containing the encoding, so as to avoid login jump failure due to too long address. The operation of this step can be implemented by the coding unit 202 of the page registration device 200 for example, by accessing the page.

页面服务器接收到http请求,若判断发送该http请求要访问该页面的用户未登录,那么对用户请求的原始页面地址进行编码。对原始页面地址进行编码可以是对一部分原始页面地址进行编码也可以是对全部的原始页面地址进行编码。其中,进行编码(编码模块20的功能)例如:利用MD5算法对原始页面地址url进行编码,生成MD5编码字符串,以便能生成含有所述MD5编码的短url地址。例如,将MD5编码与短url管理服务器地址的域名进行组合,以生成短url地址。短url管理服务器地址的域名是固定的,即通过识别这个域名就能够重定向到短url管理服务器中。例如原始页面地址为x/b.c(如x为页面服务器固有的域名),短url管理服务器地址的固有的域名是a,经过编码后原始页面地址被编码成x/md5或md5(原始页面地址x的域名可以保留也可以一并被编码即原始页面地址可以部分被编码或全部被编码)。再组合到该域名a上生成短url地址为x/a/md5或a/md5。这样就完成了短url地址的生成。从而能根据该新地址外部重定向到短url管理服务器上。When the page server receives the http request, if it is judged that the user who sends the http request to access the page is not logged in, then the original page address requested by the user is encoded. Encoding the original page address may be encoding a part of the original page address or encoding all the original page address. Wherein, the encoding (the function of the encoding module 20) is for example: using the MD5 algorithm to encode the original page address url to generate an MD5 encoded string, so as to generate a short url address containing the MD5 encoded. For example, combine MD5 encoding with the domain name of the short url management server address to generate the short url address. The domain name of the short url management server address is fixed, that is, the domain name can be redirected to the short url management server by identifying the domain name. For example, the original page address is x/b.c (for example, x is the inherent domain name of the page server), and the inherent domain name of the short URL management server address is a. After encoding, the original page address is encoded into x/md5 or md5 (the original page address x The domain name can be reserved or encoded together (that is, the original page address can be partially encoded or fully encoded). Then combine it with the domain name a to generate a short url address of x/a/md5 or a/md5. This completes the generation of the short url address. Therefore, it can be externally redirected to the short url management server according to the new address.

根据本申请的一个实施例,短url管理服务器(或者后面描述的短url管理系统203)可以是置于页面服务器内部。则在对原始页面地址进行编码时可以保留页面服务器的固有域名,例如用户请求的原始页面地址为:http://domain/longurl.htm?param1=value1&param2=value2......&paramn=valuen,通过对上述地址进行MD5编码得到MD5字符串,基于MD5生成一个短url地址:http://domain/shorturl/md5string.html。这就是将原始页面地址一部分编码后再与短url管理服务器的域名shorturl组合所生成的新地址。以便依据该新地址外部重定向到短url管理服务器即该固有的shorturl域名找到短url管理服务器。According to an embodiment of the present application, the short url management server (or the short url management system 203 described later) may be placed inside the page server. Then the inherent domain name of the page server can be reserved when encoding the original page address. For example, the original page address requested by the user is: http://domain/longurl.htm?param1=value1&param2=value2......&paramn=valuen , get the MD5 string by MD5 encoding the above address, and generate a short url address based on MD5: http://domain/shorturl/md5string.html. This is the new address generated by encoding part of the original page address and then combining it with the domain name shorturl of the short url management server. In order to find the short url management server by externally redirecting to the short url management server according to the new address, that is, the inherent short url domain name.

根据本申请的另一个实施例,短url管理服务器(或者后面描述的短url管理系统203)可以置于页面服务器外部。则对原始页面地址全部进行编码,例如用户请求的原始页面地址为:http://domain1/longurl.htm?param1=value1&param2=value2......&paramn=valuen,通过对上述地址进行MD5编码得到MD5字符串,基于MD5生成一个短url地址:http://shorturl/md5string.html。这就是将原始页面地址全部编码后再与短url管理服务器的域名shorturl组合所生成的新地址。以便依据该新地址外部重定向到短url管理服务器即该固有的shorturl域名找到短url管理服务器。According to another embodiment of the present application, the short url management server (or the short url management system 203 described later) may be placed outside the page server. Then encode all the original page addresses. For example, the original page address requested by the user is: http://domain1/longurl.htm?param1=value1&param2=value2......&paramn=valuen, by encoding the above address with MD5 Get the MD5 string, and generate a short url address based on MD5: http://shorturl/md5string.html. This is the new address generated by combining all the original page addresses with the domain name shorturl of the short url management server. In order to find the short url management server by externally redirecting to the short url management server according to the new address, that is, the inherent short url domain name.

以上两种实施例中对原始页面进行编码得到短url地址后,都通过外部重定向(如:用户能感觉到地址栏的地址发生变化、发现在跳转)的方式重定向到短url管理服务器中。In the above two embodiments, after the original page is encoded to obtain the short url address, it is redirected to the short url management server through external redirection (such as: the user can feel that the address in the address bar has changed and finds that it is jumping) middle.

接下来,在步骤S103中根据该MD5组合成的该新地址(即该短url地址)外部重定向到的短url管理服务器,再根据所述短url地址生成登录服务器地址以跳转到登录服务器实现登录(如短url管理模块50的功能),且保存对应该编码的原始页面地址(如存储模块30的功能)。Next, in step S103, the short url management server is externally redirected to based on the new address (that is, the short url address) combined by the MD5, and then the login server address is generated according to the short url address to jump to the login server Realize login (such as the function of the short url management module 50), and save the original page address corresponding to the code (such as the function of the storage module 30).

原始页面地址会作为对应编码的value值传送到该短url管理服务器,并将对应该编码如MD5的原始页面地址保存到短url管理服务器的缓存中,存储编码MD5和原始页面地址的对应关系。The original page address will be sent to the short url management server as the value of the corresponding code, and the original page address corresponding to the code such as MD5 will be stored in the cache of the short url management server, and the corresponding relationship between the code MD5 and the original page address will be stored.

可以将生成的MD5编码字符串作为标识key,原始页面地址作为所述标识key的值(value),对应着该key一起保存到短url管理服务器的缓存中,这将在登录成功后,返回到该短url管理服务器,由该短url服务器根据key找到值(原始页面地址),以便之后重定向到用户http请求的原始页面地址从而对页面进行访问。The generated MD5 encoded string can be used as the identification key, and the original page address can be used as the value of the identification key, which is stored in the cache of the short url management server corresponding to the key, which will be returned to The short url manages the server, and the short url server finds the value (original page address) according to the key, so as to redirect to the original page address of the user http request to access the page.

这样,MD5编码字符串(key)和原始页面地址之间建立了关联关系,比如:key1对应原始页面地址1,key2对应原始页面地址2,……;而key1是对应原始页面地址1、key2是对应原始页面地址2,key1和key2是分别通过MD5算法编码获得的两个MD5编码字符串;对应原始页面地址1所生成的短url中会包含该key1、对应原始页面地址2所生成的短url中会包含该key2。这样,通过MD5编码字符串(key)就可以找到原始页面地址。这里,key可以是唯一的标识。In this way, an association relationship is established between the MD5 encoded string (key) and the original page address, for example: key1 corresponds to the original page address 1, key2 corresponds to the original page address 2, ...; and key1 corresponds to the original page address 1, key2 is Corresponding to the original page address 2, key1 and key2 are two MD5-encoded strings obtained by encoding with the MD5 algorithm; the short URL generated corresponding to the original page address 1 will include the key1 and the short URL generated corresponding to the original page address 2 will contain the key2. In this way, the original page address can be found through the MD5 encoded string (key). Here, key can be a unique identifier.

这里,可以将短url管理服务器设置于短url管理系统中如图2所示短url管理系统203,该短url管理系统203能控制短url管理服务器及其内部模块的动作,短url管理模块50控制并关联存储模块30和跳转模块40。Here, the short url management server can be arranged in the short url management system 203 shown in FIG. Control and associate the storage module 30 and the jump module 40 .

所述短url管理服务器将该短url地址作为参数与登录服务器地址组合,并根据组合生成的新的登录服务器地址(如短url管理模块50的功能),进行外部重定向,即跳转到登录服务器(如跳转模块40的功能),找到登录服务器完成用户登录。登录服务器204地址的域名是固定的,依据该域名能准确找到该登录服务器,即通过解析该组合成的新地址,识别出这个域名就可以重定向到该登录服务器204。The short url management server combines the short url address with the login server address as a parameter, and performs external redirection according to the new login server address (such as the function of the short url management module 50) generated by the combination, that is, jumps to the login server address. The server (such as the function of the jump module 40) finds the login server to complete the user login. The domain name of the login server 204 address is fixed, and the login server can be accurately found according to the domain name, that is, the login server 204 can be redirected to the login server 204 by identifying the domain name by analyzing the combined new address.

短url管理机制:由于通过对原始页面地址进行编码处理,生成了重定向到该短url管理服务器的短url地址,在跳转登录服务器的时候就不需要使用原始页面地址作为参数,只需要使用短url地址作为参数即可,大大降低了登录服务器地址的长度,不会出现因为获取的登录服务器地址不全而跳转失败或登录失败的情况。承上述例子,原始页面地址为x/b.c(x为页面服务器固定域名),对原始页面进行编码后生成的短url地址为a/md5或x/a/md5(a为确定短url服务器位置的固定域名),其远远短于原始页面地址。登录服务器地址的域名为d,则由短url地址a/md5或x/a/md5为参数生成的登录服务器地址为d/a/md5或d/x/a/md5。如果采用原有的技术则登录服务器地址应该为d/x/b.c,而使用本申请的方法后登录服务器地址由d/x/b.c变为了d/a/md5或d/x/a/md5。a/md5或d/x/a/md5是一个很短的地址比x/b.c短很多,所以d/a/md5或d/x/a/md5也会很短不会超过长度限制范围,这样登录服务器地址就不会过长,不会出现跳转失败或登录失败的情况。并且在完成登录后可以根据a/md5或d/x/a/md5以返回到短url管理服务器,再由解析该短url地址获得的md5找到对应存储的value即原始页面地址,最终返回到用户要访问的页面,进而能在客户端浏览器中进行页面展示(对访问网页进行加载),这些回跳的步骤都不会因为url地址过长超过浏览器限制、导致浏览器丢失掉一部分而无法完成。Short url management mechanism: Because the short url address redirected to the short url management server is generated by encoding the original page address, there is no need to use the original page address as a parameter when jumping to the login server, just use The short url address can be used as a parameter, which greatly reduces the length of the login server address, and there will be no jump failure or login failure due to the incomplete login server address obtained. Following the above example, the original page address is x/b.c (x is the fixed domain name of the page server), and the short url address generated after encoding the original page is a/md5 or x/a/md5 (a is the URL to determine the location of the short url server fixed domain name), which is much shorter than the original page address. If the domain name of the login server address is d, then the login server address generated by the short url address a/md5 or x/a/md5 as a parameter is d/a/md5 or d/x/a/md5. If the original technology is adopted, the login server address should be d/x/b.c, but after using the method of this application, the login server address is changed from d/x/b.c to d/a/md5 or d/x/a/md5. a/md5 or d/x/a/md5 is a very short address much shorter than x/b.c, so d/a/md5 or d/x/a/md5 will also be very short and will not exceed the length limit range, so The login server address will not be too long, and there will be no jumping failure or login failure. And after completing the login, you can return to the short url management server according to a/md5 or d/x/a/md5, and then find the corresponding stored value, that is, the original page address by analyzing the md5 obtained from the short url address, and finally return to the user The page to be accessed can then be displayed in the client browser (loading the accessed web page). These steps of jumping back will not fail because the url address is too long and exceeds the limit of the browser, causing the browser to lose part of the page. Finish.

该步骤的操作,可由下面描述的页面登录的装置200的编码单元202及短url管理系统203(例如:其短url管理服务器)实施。The operation of this step can be implemented by the coding unit 202 and the short url management system 203 (for example: its short url management server) of the page login device 200 described below.

在生成登录服务器地址后,在步骤S104中,根据所述登录服务器地址跳转到登录服务器进行登录(即跳转模块40的功能),而登录成功后或者说登录操作完成后,返回到所述短url管理服务器中(即返回及访问模块60的功能)。After generating the login server address, in step S104, jump to the login server to log in according to the login server address (that is, the function of the jump module 40), and after the login is successful or after the login operation is completed, return to the In the short url management server (that is, the function of returning and accessing the module 60).

由登录服务器返回、外部重定向到该短url管理服务器。这里,之前所生成的登录服务器地址中带有短url地址参数,在返回短url管理服务器/系统时,将该参数中的短url地址提取出来,返回时在登录服务器204解析出组合成的登录服务器地址中所包含的短url地址,该短url地址中带有的短url管理服务器地址的域名,而能再使用此短url地址返回到短url管理服务器中(承上述例子d/a/md5或d/x/a/md5中解析出a/md5,基于地址a/md5中的a外部重定向到短url管理服务器)。该步骤的操作可由下面描述的页面登录的装置200的登录服务器204和短url管理系统203实施。Returned by the login server, externally redirected to the short URL management server. Here, the previously generated login server address has a short url address parameter. When returning the short url management server/system, the short url address in the parameter is extracted, and the login server 204 parses out the combined login when returning. The short url address contained in the server address, the domain name of the short url management server address contained in the short url address, can then use this short url address to return to the short url management server (following the above example d/a/md5 Or parse a/md5 from d/x/a/md5, and redirect to the short url management server based on a in address a/md5). The operation of this step can be implemented by the login server 204 and the short url management system 203 of the page login device 200 described below.

进一步的,步骤S105中(即返回及访问模块60的功能),在短url管理服务器中,获取所述短url地址(如上例:a/md5),解析出短url地址中的MD5编码。在生成该短url地址的时候就是由MD5编码组合生成的,所以可以根据所述短url地址获取其中的编码(MD5编码字符串)。并且在短url管理服务器中还保存有MD5编码key与原始页面地址value的对应关系,在得到了MD5编码和MD5编码与原始页面地址的对应关系情况下,就可以根据所述短url地址获取的编码找到对应的原始页面地址即由key找到value,以便能通过原始页面地址访问页面。该步骤的操作可由下面描述的页面登录的装置200的短url管理系统203实施。Further, in step S105 (that is, the function of the return and access module 60 ), the short url address (such as the above example: a/md5) is obtained in the short url management server, and the MD5 code in the short url address is parsed out. When the short url address is generated, it is generated by MD5 encoding combination, so the encoding (MD5 encoded string) can be obtained according to the short url address. And in the short url management server, there is also a corresponding relationship between the MD5 encoding key and the original page address value. After obtaining the MD5 encoding and the corresponding relationship between the MD5 encoding and the original page address, the short url address can be obtained according to the short url address. The encoding finds the corresponding original page address, that is, the key finds the value, so that the page can be accessed through the original page address. The operation of this step can be implemented by the short url management system 203 of the page login device 200 described below.

然后,在步骤S106中(即返回及访问模块60的功能),根据原始页面地址对接收的用户访问请求中要求访问的页面进行访问(例如:去访问其请求的页面服务器)。这一步,用户已经是登录状态,于是可以访问请求的页面。例如,短url管理服务器/系统通过重定向(包括内部重定向和外部重定向)回用户请求的页面;如果短url管理服务器置于页面服务器内部则可以采用内部重定向的方式重定向回用户请求的页面(承上述例子,内置方式则域名x不变的情况下返回到页面服务器,用户不会感觉到地址栏的变化,对用户无干扰体验更友好)。如果短url管理服务器置于页面服务器外部则仍采用外部重定向的方式(承上述例子,域名由shorturl转为x产生跳转感受)。完成重定向回用户请求的页面后,展现用户请求的页面(如页面服务器端实现访问),完成向客户端浏览器返回用户需要的结果等。当然,最终其有效地完成了登录跳转的操作,而不会出现登录或跳转失败的情况。该步骤的操作可由下面描述的页面登录的装置200的短url管理系统203实施。Then, in step S106 (that is, the function of the returning and accessing module 60 ), the page required to be accessed in the received user access request is accessed according to the original page address (for example: to access the requested page server). At this step, the user is already logged in and can access the requested page. For example, the short url management server/system returns to the page requested by the user through redirection (including internal redirection and external redirection); if the short url management server is placed inside the page server, it can use internal redirection to redirect back to the user request (Continuing the above example, the built-in method returns to the page server without changing the domain name x, and the user will not feel the change of the address bar, which is more friendly to the user without interference). If the short url management server is placed outside the page server, the external redirection method is still used (referring to the above example, the domain name is changed from short url to x to generate a jump experience). After completing the redirection back to the page requested by the user, display the page requested by the user (such as the page server-side to achieve access), complete the return of the results required by the user to the client browser, etc. Of course, in the end, it effectively completes the operation of login jump without login or jump failure. The operation of this step can be implemented by the short url management system 203 of the page login device 200 described below.

本申请的实施例中还提供一种页面登录的装置200,如图2,根据本申请实施例的页面登录的装置200的结构框图。其中包括:接收单元201、编码单元202、短url管理系统203、登录服务器204,另外还可以包括客户端浏览器和页面服务器等(未示出)。The embodiment of the present application also provides an apparatus 200 for page login, as shown in FIG. 2 , which is a structural block diagram of the apparatus 200 for page login according to the embodiment of the application. It includes: a receiving unit 201, an encoding unit 202, a short url management system 203, a login server 204, and may also include a client browser and a page server (not shown).

其中,接收单元201(可以位于页面服务器或独立连接于页面服务器),能执行如上述步骤S101的操作,其在编码原始页面地址前,接收来自客户端浏览器的用户访问请求,获取所述原始页面地址,以提供给编码单元。Among them, the receiving unit 201 (which may be located in the page server or independently connected to the page server) can perform the operation as in the above step S101. It receives the user access request from the client browser before encoding the original page address, and obtains the original page address. The address of the page, to provide to the encoding unit.

编码单元202(可以位于页面服务器或独立连接于页面服务器),能执行如上述步骤S102、S103的操作,使用MD5算法对原始页面地址进行编码并生成含有所述编码的短url地址以重定向到短url管理系统。The encoding unit 202 (which may be located on the page server or independently connected to the page server) can perform the operations of the above steps S102 and S103, use the MD5 algorithm to encode the original page address and generate a short url address containing the encoding to redirect to Short url management system.

短url管理系统203,能执行如上述步骤S103-S106的操作。编码单元201根据短url地址外部重定向到该短url管理系统203(如短url管理服务器),短url管理系统203保存对应编码的原始页面地址到缓存中并保存编码与原始页面地址的对应关系,且根据所述短url地址组成登录服务器地址,例如,将所述短url地址作为参数以生成登录服务器地址,以便跳转到登录服务器实现登录;以及,当登录成功后基于短url地址返回(重定向回短url管理服务器)并基于所述编码获取对应的原始页面地址,以对页面进行访问,例如,获取所述短url地址,以根据所述短url地址获取编码,并根据所述短url地址获取的编码找到对应的原始页面地址,以通过原始页面地址访问页面。The short url management system 203 can perform operations such as the above steps S103-S106. The encoding unit 201 externally redirects to the short url management system 203 (such as a short url management server) according to the short url address, and the short url management system 203 saves the original page address corresponding to the encoding in the cache and stores the corresponding relationship between the encoding and the original page address , and form a login server address according to the short url address, for example, use the short url address as a parameter to generate a login server address, so as to jump to the login server for login; and, when the login is successful, return based on the short url address ( Redirect back to the short url management server) and obtain the corresponding original page address based on the code to access the page, for example, obtain the short url address to obtain the code according to the short url address, and obtain the code according to the short url address The encoding obtained from the url address finds the corresponding original page address, so as to access the page through the original page address.

登录服务器204,由短url管理系统203通过登录服务器地址外部重定向而被访问,并在完成用户的登录操作后再外部重定向以返回短url管理系统203。参见步骤S104。The login server 204 is accessed by the short url management system 203 through external redirection of the login server address, and is externally redirected to return to the short url management system 203 after the user's login operation is completed. See step S104.

本实施例的装置200的结构功能与图1所述的方法的操作步骤对应,基于短url管理机制实施,方法和装置可以相互参照,不再一一赘述。The structure and function of the device 200 in this embodiment correspond to the operation steps of the method described in FIG. 1 , and are implemented based on the short url management mechanism. The method and the device can be referred to each other and will not be repeated one by one.

另外,本申请的实施例还描述了对应上述方法的功能模块系统,如图5所示,包含各个功能模块的页面登录的系统。其中包括接收模块10、编码模块20、短地址生成模块40、跳转模块50、和返回及访问模块60。编码模块20包括存储模块30。In addition, the embodiment of the present application also describes a functional module system corresponding to the above method, as shown in FIG. 5 , a system including page login of each functional module. It includes a receiving module 10 , an encoding module 20 , a short address generating module 40 , a jumping module 50 , and a returning and accessing module 60 . The encoding module 20 includes a storage module 30 .

接收模块10,用于接收用户访问请求,获取原始页面地址。获取得到的原始页面地址被传送到编码单元20中。The receiving module 10 is configured to receive a user access request and obtain the original page address. The obtained original page address is sent to the encoding unit 20 .

编码模块20,用于将接收模块10获取到的原始页面地址进行编码,以生成含有所述编码的短url地址重定向到短url管理模块50。可以使用MD5算法对原始页面地址进行编码。The encoding module 20 is configured to encode the original page address acquired by the receiving module 10 to generate a short url address containing the encoding and redirect it to the short url management module 50 . The original page address can be encoded using the MD5 algorithm.

存储模块30,用于保存原始页面地址。例如通过与编码对应保存的方式,使用对原始页面地址编码后得到的编码字符串作为标识,原始页面地址作为所述标识对应的值,保存到短url管理系统(服务器)的缓存中。The storage module 30 is used for saving the original page address. For example, by saving in correspondence with the encoding, the encoded character string obtained by encoding the original page address is used as an identifier, and the original page address is used as the value corresponding to the identifier, and saved in the cache of the short url management system (server).

短url管理模块50,用于基于编码模块20中生成该短url地址,组成含有具备编码的短url地址的登录服务器地址。The short url management module 50 is configured to form a login server address containing the encoded short url address based on the short url address generated by the encoding module 20 .

跳转模块40,用于短url管理模块50生成的登录服务器地址,跳转到登录服务器中实现登录。The jump module 40 is used for the login server address generated by the short url management module 50 to jump to the login server to realize login.

返回及访问模块60,用于登录完成后返回并基于所述编码获取对应的原始页面地址以对页面进行访问。The returning and accessing module 60 is configured to return and obtain the corresponding original page address based on the code to access the page after the login is completed.

本实施例的系统的功能与图1所述的方法的操作步骤对应,基于短url管理机制实施,方法和系统可以相互参照,不再一一赘述。The functions of the system in this embodiment correspond to the operation steps of the method described in FIG. 1 , and are implemented based on the short url management mechanism. The method and the system can be referred to each other, and will not be repeated one by one.

结合图3与图4,可以清楚的得出本申请与现有技术的区别,图3是现有技术中页面登录跳转的流程时序图,图4是根据本申请实施例的一种页面登录跳转方法的流程时序图。Combining Figure 3 and Figure 4, the difference between this application and the prior art can be clearly drawn, Figure 3 is a flow sequence diagram of page login jump in the prior art, Figure 4 is a page login according to the embodiment of the application Sequence diagram of the jump method.

在图3所示现有技术中,客户端浏览器发起http请求,到用户请求的页面,如到页面服务器,判断用户未登录需要完成登录才能访问,于是,将用户请求页面的页面地址作为参数外部重定向到登录服务器,在完成登录后外部重定向回用户请求的页面,最后返回用户结果进行页面访问。期间,由于地址过长超过浏览器限制而丢失部分地址信息,无法从登录服务器返回到请求的页面(页面服务器),导致登录或跳转失败的情况。In the prior art shown in Figure 3, the client browser initiates an http request to the page requested by the user, such as to the page server, judging that the user has not logged in and needs to complete the login before accessing, so the page address of the page requested by the user is used as a parameter Externally redirect to the login server, externally redirect back to the page requested by the user after the login is completed, and finally return the user result for page access. During this period, because the address is too long and exceeds the limit of the browser, part of the address information is lost, and the login server cannot return to the requested page (page server), resulting in login or jump failure.

而在图4所示本申请的方案中,客户端浏览器发起http请求,到用户请求的页面如到页面服务器,判断用户未登录,先将用户请求页面的页面地址进行编码,生成短url地址并重定向到短url管理系统(服务器),编码和原始页面地址对应保存,并将短url作为参数形成登录服务器地址,外部重定向到登录服务器,在完成登录后外部重定向回短url管理服务器,接着从短url中获取编码,根据对应存储关系获得相应的原始页面地址,从而内部重定向回用户请求的页面,最后返回用户结果,实现用户对请求页面的访问。In the scheme of this application shown in Figure 4, the client browser initiates an http request, and if the page requested by the user arrives at the page server, it is judged that the user is not logged in, and the page address of the page requested by the user is first encoded to generate a short url address And redirect to the short url management system (server), the code and the original page address are saved correspondingly, and the short url is used as a parameter to form the login server address, externally redirected to the login server, and externally redirected back to the short url management server after the login is completed. Then obtain the code from the short url, and obtain the corresponding original page address according to the corresponding storage relationship, so as to internally redirect back to the page requested by the user, and finally return the user result to realize the user's access to the requested page.

本申请的方案基于上述短url管理机制,明显在未增加网络处理性能的负担的情况下,保证了页面访问中的页面登录和跳转不易出现丢失地址、进而不会导致跳转和登录失败。The solution of this application is based on the above-mentioned short url management mechanism, obviously without increasing the burden of network processing performance, it ensures that the page login and jump during page access are not easy to lose addresses, and thus will not cause jumps and login failures.

本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块或单元。一般地,程序模块或单元可以包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。一般来说,程序模块或单元可以由软件、硬件或两者的结合来实现。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块或单元可以位于包括存储设备在内的本地和远程计算机存储介质中。The present application may be described in the general context of computer-executable instructions, such as program modules or units, being executed by a computer. Generally, program modules or units may include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. In general, program modules or units can be implemented by software, hardware or a combination of both. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules or units may be located in both local and remote computer storage media including storage devices.

最后,还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。Finally, it should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, but also Other elements not expressly listed, or inherent in the process, method, commodity, or apparatus, are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其主要思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包括在本申请的权利要求范围之内。综上所述,本说明书内容不应理解为对本申请的限制。In this paper, specific examples are used to illustrate the principle and implementation of the application. The description of the above embodiments is only used to help understand the method and main idea of the application; meanwhile, for those of ordinary skill in the art, according to the application There will be changes in the specific implementation and scope of application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included in the scope of claims of this application. within. To sum up, the contents of this specification should not be understood as limiting the application.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

以上所述仅为本申请的实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above description is only an embodiment of the present application, and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included within the scope of the claims of the present application.

Claims (21)

1. a kind of method that page is logged in, it is characterised in that this method includes:
Parent page address is encoded, short url address of the generation containing the coding;
The short url addresses are managed, the login service device address for including the short url addresses are obtained, to jump to login service Device, which is realized, to be logged in;
Preserve the coding and the corresponding relation of parent page address;
Returned after logining successfully with the short url addresses and be based on the coding and the corresponding relation, obtain the original page Face address to the page to conduct interviews.
2. according to the method described in claim 1, it is characterised in that described that parent page address progress coding is included:Use MD5 algorithms are encoded to parent page address.
3. according to the method described in claim 1, it is characterised in that including:The short url addresses include the coding and one The domain name of short url management systems.
4. according to the method described in claim 1, it is characterised in that preserve coding pass corresponding with parent page address System, including:Coded string is obtained as mark, the two correspondence is protected as the corresponding value of the mark in parent page address In the caching for being stored to a short url management servers.
5. according to the method described in claim 1, it is characterised in that the login service device address includes:The short url addresses And the domain name of the login service device.
6. according to the method described in claim 1, it is characterised in that return and be based on the short url addresses after logining successfully The coding and the corresponding relation, obtain the parent page address, including:
Obtain the short url addresses;
Go out the coding from the short url address resolution;
According to the coding parsed, from the corresponding relation of preservation, find and the corresponding parent page of the coding Address.
7. according to the method described in claim 1, it is characterised in that including:
Short url addresses containing the coding include the domain name of the coding and a short url management servers;
The short url management servers are redirected to based on the short url addresses;
The short url addresses are managed, obtaining the login service device address comprising the short url addresses includes:The short url management Server using the short url addresses as parameter and login service device domain name combination, to generate login service device address;
Returned after logining successfully with the short url addresses and be based on the coding and the corresponding relation, obtain the original page Face address includes:The login service device parses the login service device address and obtains the short url addresses, and with described short Url is redirected to address the short url management servers, is parsed by the short url management servers in the short url addresses The coding, based on it is described coding and the corresponding relation find parent page address.
8. the device that a kind of page is logged in, it is characterised in that the device includes:
Coding unit, is encoded to parent page address, short url address of the generation containing the coding;
Short url management systems, manage the short url addresses, obtain the login service device address for including the short url addresses, with Jump to login service device and realize login;Preserve the coding and the corresponding relation of parent page address;And after logining successfully Based on the coding and the corresponding relation in the short url addresses, obtain the parent page address to conduct interviews to the page.
9. device according to claim 8, it is characterised in that the coding unit is using MD5 algorithms to parent page Location is encoded.
10. device according to claim 8, it is characterised in that the short url addresses of the coding unit generation are included The domain name of the coding and a short url management systems.
11. device according to claim 8, it is characterised in that the short url management systems, preserves the coding and original Beginning page address corresponding relation, including:Coded string is obtained as mark, parent page address is used as the mark correspondence Value, by the two correspondence be saved in the caching of a short url management systems.
12. device according to claim 8, it is characterised in that in short url management systems, the login service device address, Including:The short url addresses and the domain name of the login service device.
13. device according to claim 8, it is characterised in that short url management systems, is encoded and described right based on described It should be related to, obtain the parent page address, including:
Obtain the short url addresses;
Go out the coding from the short url address resolution;
According to the coding parsed, from the corresponding relation of preservation, find and the corresponding parent page of the coding Address.
14. device according to claim 8, it is characterised in that including:
Coding unit, short url address of the generation containing the coding includes:By the coding and the domain of a short url management systems Name is combined into the short url addresses, to be redirected to the short url management systems based on the short url addresses;
Short url management systems, manage the short url addresses, obtain the login service device address comprising the short url addresses and wrap Include:Using the short url addresses as parameter and the domain name combination of login service device, to generate login service device address;
Login service device, is completed after logging in, and is parsed the login service device address and is obtained the short url addresses, and with described short Url is redirected to address the short url management systems;
Short url management systems, parse the coding in the short url addresses, based on it is described coding and preserve it is described right It should be related to, find the parent page address, to be redirected to the page that user's request is accessed.
15. a kind of page login system, it is characterised in that including:
Coding module, is encoded to parent page address, short url address of the generation containing the coding;
Short url management modules, manage the short url addresses, obtain the login service device address for including the short url addresses, with Jump to login service device and realize login;
Memory module, preserves the coding and the corresponding relation of parent page address;
Return and access modules, based on the coding and the corresponding relation in the short url addresses after logining successfully, obtain described Parent page address to the page to conduct interviews.
16. system according to claim 15, it is characterised in that the coding module includes:Using MD5 algorithms to original Page address is encoded.
17. system according to claim 15, it is characterised in that the short url addresses bag of the coding module generation Domain name containing the coding and a short url management systems.
18. system according to claim 15, it is characterised in that memory module includes a caching, with short url management modules Association;Memory module, which preserves the coding and the corresponding relation of parent page address, to be included:Coded string is obtained as mark, The two correspondence is saved in the caching by parent page address as the corresponding value of the mark.
19. system according to claim 15, it is characterised in that in short url management modules, the login service device Location, including:The short url addresses and the domain name of the login service device.
20. system according to claim 15, it is characterised in that return and access modules, is encoded and described based on described Corresponding relation obtains the parent page address, including:Obtain the short url addresses;Go out from the short url address resolution described Coding;According to the coding parsed, from the corresponding relation of preservation, find and the corresponding parent page of the coding Address.
21. system according to claim 15, it is characterised in that
The coding module, short url address of the generation containing the coding includes:By the coding and a short url management systems Domain name combination into the short url addresses, to be redirected to the short url management systems based on the short url addresses;
Short url management modules, manage the short url addresses, obtain the login service device address comprising the short url addresses and wrap Include:Using the short url addresses as parameter and the domain name combination of login service device, to generate login service device address;
Return and access modules, complete after logging in, parse the login service device address and obtain the short url addresses, and with institute State short url addresses and be redirected to the short url management systems;
Short url management modules, parse the coding in the short url addresses, based on it is described coding and preserve it is described right It should be related to, find the parent page address, to be redirected to the page that user's request is accessed.
CN201310113141.XA 2013-04-02 2013-04-02 Method, device and system for page login Active CN104104649B (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
CN201310113141.XA CN104104649B (en) 2013-04-02 2013-04-02 Method, device and system for page login
TW102132565A TWI629890B (en) 2013-04-02 2013-09-10 Method, device and system for page login
US14/224,862 US9450883B2 (en) 2013-04-02 2014-03-25 Managing redirected website login using a short address
PCT/US2014/032055 WO2014165391A1 (en) 2013-04-02 2014-03-27 Managing redirected website login using a short address
JP2016506337A JP6125715B2 (en) 2013-04-02 2014-03-27 Managing redirect websites and logins using abbreviated addresses
EP14725839.6A EP2982093B1 (en) 2013-04-02 2014-03-27 Managing redirected website login using a short address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310113141.XA CN104104649B (en) 2013-04-02 2013-04-02 Method, device and system for page login

Publications (2)

Publication Number Publication Date
CN104104649A CN104104649A (en) 2014-10-15
CN104104649B true CN104104649B (en) 2017-09-19

Family

ID=51621966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310113141.XA Active CN104104649B (en) 2013-04-02 2013-04-02 Method, device and system for page login

Country Status (6)

Country Link
US (1) US9450883B2 (en)
EP (1) EP2982093B1 (en)
JP (1) JP6125715B2 (en)
CN (1) CN104104649B (en)
TW (1) TWI629890B (en)
WO (1) WO2014165391A1 (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9197513B2 (en) 2012-05-03 2015-11-24 Salesforce.Com, Inc. Computer implemented methods and apparatus for representing a portion of a user interface as a network address
US20150161282A1 (en) * 2013-12-11 2015-06-11 Yahoo! Inc. Method and System for Smart URL Shortening Service
CN105791375A (en) * 2014-12-26 2016-07-20 上海斐讯数据通信技术有限公司 Page directing method for Web server
CN104657432B (en) * 2015-01-28 2018-01-23 北京金和软件股份有限公司 It is a kind of to reduce the method that long address conversion is short address repetitive rate
CN105050081B (en) * 2015-08-19 2017-03-22 腾讯科技(深圳)有限公司 Method, device and system for connecting network access device to wireless network access point
MX377369B (en) * 2015-09-28 2025-03-10 Andrew Wireless Systems Uk Ltd SIMULATION OF DOMAIN NAME SYSTEM RESPONSE ON THE CUSTOMER INSTALLATION EQUIPMENT DEVICE.
CN106649389A (en) * 2015-11-03 2017-05-10 阿里巴巴集团控股有限公司 Page pushing method and apparatus, and network system
CN106933854B (en) * 2015-12-30 2020-06-30 阿里巴巴集团控股有限公司 Short link processing method and device and server
CN107220260B (en) * 2016-03-22 2020-07-24 阿里巴巴集团控股有限公司 Page display method and device
CN105978914B (en) * 2016-07-18 2019-05-21 北京小米移动软件有限公司 Web access method and device
CN106230788A (en) * 2016-07-22 2016-12-14 上海斐讯数据通信技术有限公司 The reorientation method of a kind of portal certification, radio reception device, portal server
CN106548068A (en) * 2016-10-31 2017-03-29 珠海市魅族科技有限公司 Short website information display system and method
US10855793B2 (en) * 2017-09-25 2020-12-01 Splunk Inc. Proxying hypertext transfer protocol (HTTP) requests for microservices
US10230683B1 (en) * 2018-02-09 2019-03-12 Capital One Services, Llc Routing for large server deployments
US11271763B2 (en) 2018-06-19 2022-03-08 Ricoh Company, Ltd. Information processing system, information processing apparatus, and information processing method
CN110569464A (en) * 2019-08-09 2019-12-13 阿里巴巴集团控股有限公司 page access method and device
CN110750741B (en) * 2019-10-18 2022-12-13 深圳市比量科技传媒有限公司 Webpage link skipping processing method, computer device and storage medium
CN112380527B (en) * 2020-11-12 2024-02-23 新华三信息技术有限公司 Management system of server and access method of server management page
CN112818199A (en) * 2021-01-28 2021-05-18 平安普惠企业管理有限公司 Webpage access method and device, computer equipment and storage medium
CN113986229A (en) * 2021-10-25 2022-01-28 北京有竹居网络技术有限公司 Redirection method and device for jump page
CN114528506A (en) * 2022-02-18 2022-05-24 深圳前海环融联易信息科技服务有限公司 Method for quickly generating short url
CN114553825B (en) * 2022-02-23 2023-05-23 福建天晴数码有限公司 Method and system for converting webpage address into short address

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333082A (en) * 2010-08-23 2012-01-25 微软公司 The URL of safety shortens
CN102647407A (en) * 2011-02-15 2012-08-22 佳能株式会社 Information processing system, method for controlling information processing system, and program

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003141002A (en) * 2001-10-29 2003-05-16 Nec Corp Url length conversion system and program
US7191467B1 (en) 2002-03-15 2007-03-13 Microsoft Corporation Method and system of integrating third party authentication into internet browser code
CN1221898C (en) * 2002-08-13 2005-10-05 国际商业机器公司 System and method for updating network proxy cache server object
US7568107B1 (en) * 2003-08-20 2009-07-28 Extreme Networks, Inc. Method and system for auto discovery of authenticator for network login
WO2005103960A1 (en) * 2004-04-20 2005-11-03 The Boeing Company Apparatus and method for redirecting unresolvable addresses using a local care-of ip address
US7698269B2 (en) * 2005-11-29 2010-04-13 Yahoo! Inc. URL shortening and authentication with reverse hash lookup
US8402163B2 (en) * 2007-02-21 2013-03-19 John Almeida Target advertising to a specific user offered through an intermediary internet service provider, server or wireless network
US7908317B2 (en) 2007-06-07 2011-03-15 Oracle International Corporation System and method for URL compression
JP4856591B2 (en) * 2007-06-27 2012-01-18 富士フイルム株式会社 Server system, operation control method thereof, and control program thereof
WO2009008484A1 (en) * 2007-07-12 2009-01-15 Drecom Co., Ltd. Advertisement matching system based on viewing history, program, server, and advertisement providing method
US8347355B2 (en) * 2008-01-17 2013-01-01 Aerohive Networks, Inc. Networking as a service: delivering network services using remote appliances controlled via a hosted, multi-tenant management system
US8341200B2 (en) * 2008-06-12 2012-12-25 Pomian & Corella, Llc Protecting a web application against attacks through shared files
US20100268739A1 (en) * 2009-04-21 2010-10-21 George David Zalepa Systems and methods for automatically detecting and removing redirected uniform resource locators
US8630200B2 (en) 2010-06-01 2014-01-14 Meltwater News International Holdings, GmbH Method and apparatus for embedding information in a short URL
CN102402558A (en) * 2010-09-16 2012-04-04 腾讯科技(深圳)有限公司 Method and system for providing message containing webpage address
US8898751B2 (en) * 2011-10-24 2014-11-25 Verizon Patent And Licensing Inc. Systems and methods for authorizing third-party authentication to a service

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333082A (en) * 2010-08-23 2012-01-25 微软公司 The URL of safety shortens
CN102647407A (en) * 2011-02-15 2012-08-22 佳能株式会社 Information processing system, method for controlling information processing system, and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于用户映射的CAS单点登录系统设计与实现;张齐等;《信息通信技术》;20090430;第6-10页,附图2 *

Also Published As

Publication number Publication date
EP2982093A1 (en) 2016-02-10
JP6125715B2 (en) 2017-05-10
EP2982093B1 (en) 2018-05-02
JP2016515739A (en) 2016-05-30
US20140297863A1 (en) 2014-10-02
US9450883B2 (en) 2016-09-20
TW201440473A (en) 2014-10-16
CN104104649A (en) 2014-10-15
WO2014165391A1 (en) 2014-10-09
TWI629890B (en) 2018-07-11

Similar Documents

Publication Publication Date Title
CN104104649B (en) Method, device and system for page login
US10979485B2 (en) Mechanism for distinguishing between content to be served through first or second delivery channels
JP6410280B2 (en) Website access method, apparatus, and website system
CN107025234B (en) Information pushing method and cache server
US11675868B2 (en) Dynamic service worker code for storing information in web browser
CN102970284B (en) User profile processing method and server
US20110137888A1 (en) Intelligent caching for requests with query strings
WO2020177511A1 (en) Resource acquisition method, resource return method, server and storage medium
CN113452780B (en) Access request processing method, device, equipment and medium for client
KR101520751B1 (en) A method and server for monitoring users during their browsing within a communications network
CN104714965A (en) Static resource weight removing method, and static resource management method and device
US9473592B2 (en) Methods for optimizing a web content proxy server and devices thereof
JP2013522736A (en) Method and system for providing a message including a universal resource locator
WO2016070752A1 (en) Data backfill method and device
CN106412054B (en) Dynamic web addresses are converted to naming method, system and its application of static network address
CN103618799B (en) Browser rs cache processing method, system and proxy server
US20140280335A1 (en) System and method to allow a domain name server to process a natural language query and determine context
WO2017067373A1 (en) Data push method and apparatus
CN103701844B (en) The method and system of managing user information
CN114282147A (en) A cookie management method and device based on iOS system
CN112667937B (en) Method for processing cache data and related products
Horat et al. Web applications: A proposal to improve response time and its application to moodle
TWI399065B (en) A method of delivering information on a network relay device
KR20090106924A (en) Web service connection management system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant