Movatterモバイル変換


[0]ホーム

URL:


CN105162805A - User account login method and apparatus - Google Patents

User account login method and apparatus
Download PDF

Info

Publication number
CN105162805A
CN105162805ACN201510641519.2ACN201510641519ACN105162805ACN 105162805 ACN105162805 ACN 105162805ACN 201510641519 ACN201510641519 ACN 201510641519ACN 105162805 ACN105162805 ACN 105162805A
Authority
CN
China
Prior art keywords
user account
browser
request
time
login
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.)
Granted
Application number
CN201510641519.2A
Other languages
Chinese (zh)
Other versions
CN105162805B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co LtdfiledCriticalBeijing Qihoo Technology Co Ltd
Priority to CN201510641519.2ApriorityCriticalpatent/CN105162805B/en
Publication of CN105162805ApublicationCriticalpatent/CN105162805A/en
Application grantedgrantedCritical
Publication of CN105162805BpublicationCriticalpatent/CN105162805B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种用户账户登录方法及装置,其中方法包括:接收多个浏览器发送的同一用户账户的登录请求,根据登录请求分别生成各个浏览器的cookie信息,将cookie信息分别返回给各个浏览器;当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,在用户账户的状态表中更新用户账户退出时间;当多个浏览器中其中任一个浏览器发送页面刷新请求时,查询用户账户的状态表,根据用户账户退出时间确定是否响应页面刷新请求。本方案不仅在多个浏览器中实现了同一用户账户的同时登录,而且有助于使用户账户的拥有者及时发现该用户账户是否被非法盗用,从而保护用户账户的安全,减少用户账户因被非法盗用而造成的损失。

The invention discloses a user account login method and device, wherein the method includes: receiving login requests of the same user account sent by multiple browsers, respectively generating cookie information of each browser according to the login requests, and returning the cookie information to each browser respectively; Browser; when any one of the multiple browsers sends a logout request for the user account, update the user account logout time in the status table of the user account; when any one of the multiple browsers sends a page refresh When requesting, query the status table of the user account, and determine whether to respond to the page refresh request according to the logout time of the user account. This solution not only realizes the simultaneous login of the same user account in multiple browsers, but also helps the owner of the user account to find out whether the user account has been illegally embezzled in time, thereby protecting the security of the user account and reducing the risk of the user account being stolen. Losses caused by illegal misappropriation.

Description

Translated fromChinese
用户账户登录方法及装置User account login method and device

技术领域technical field

本发明涉及互联网技术领域,具体涉及一种用户账户登录方法及装置。The invention relates to the technical field of the Internet, in particular to a user account login method and device.

背景技术Background technique

网页游戏又称web游戏,是基于浏览器的网络在线多人互动游戏,用户无需下载客户端,直接在浏览器的网页中登录即可玩游戏。网页游戏平台是一个可以管理网页游戏和玩家的平台系统,其主要系统功能包括:游戏、新闻、用户、充值管理;辅助系统功能包括:积分商城、推广系统、数据分析、官网自建、集成论坛和系统管理等。网页游戏平台以稳定的玩家渠道、先进的运营理念、完善的客服体系、系统的数据分析以及个性的平台体验等优势逐渐吸引来越来越多的用户,并不断的提高了用户对平台的依赖性。Web games, also known as web games, are browser-based online multiplayer interactive games. Users do not need to download the client, and can play games directly by logging in on the web page of the browser. The web game platform is a platform system that can manage web games and players. Its main system functions include: games, news, users, recharge management; auxiliary system functions include: point mall, promotion system, data analysis, official website self-built, integrated forum and system management etc. The web game platform gradually attracts more and more users with the advantages of stable player channels, advanced operating concepts, perfect customer service system, systematic data analysis and personalized platform experience, and continuously improves users' dependence on the platform sex.

现有技术中,用户通过浏览器登录平台后,仅能玩一个游戏,不允许同一账号重复登录。这种方式限制了同一用户想要同时玩多个游戏,或者,用户的好友或亲人使用相同的账号登录来玩游戏。In the prior art, after a user logs in to the platform through a browser, he can only play one game, and the same account is not allowed to log in repeatedly. This way limits the same user who wants to play multiple games at the same time, or the user's friends or relatives use the same account to log in to play the game.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的用户账户登录方法及装置。In view of the above problems, the present invention is proposed to provide a user account login method and device that overcome the above problems or at least partially solve the above problems.

根据本发明的一个方面,提供了一种用户账户登录方法,该方法包括:According to one aspect of the present invention, a user account login method is provided, the method comprising:

接收多个浏览器发送的同一用户账户的登录请求,根据登录请求分别生成各个浏览器的cookie信息,将cookie信息分别返回给各个浏览器;Receive the login request of the same user account sent by multiple browsers, generate cookie information of each browser according to the login request, and return the cookie information to each browser respectively;

当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,在用户账户的状态表中更新用户账户退出时间;When any one of the multiple browsers sends a logout request for the user account, update the user account logout time in the status table of the user account;

当多个浏览器中其中任一个浏览器发送页面刷新请求时,查询用户账户的状态表,根据用户账户退出时间确定是否响应页面刷新请求。When any one of the multiple browsers sends a page refresh request, it queries the status table of the user account, and determines whether to respond to the page refresh request according to the logout time of the user account.

根据本发明的另一方面,提供了一种用户账户登录装置,该装置包括:According to another aspect of the present invention, a user account login device is provided, the device comprising:

生成模块,适于接收多个浏览器发送的同一用户账户的登录请求,根据登录请求分别生成各个浏览器的cookie信息,将cookie信息分别返回给各个浏览器;The generating module is suitable for receiving login requests of the same user account sent by multiple browsers, generating cookie information of each browser respectively according to the login requests, and returning the cookie information to each browser respectively;

更新模块,适于当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,在用户账户的状态表中更新用户账户退出时间;The update module is adapted to update the user account logout time in the status table of the user account when any one of the browsers sends a logout request of the user account;

处理模块,适于当多个浏览器中其中任一个浏览器发送页面刷新请求时,查询用户账户的状态表,根据用户账户退出时间确定是否响应页面刷新请求。The processing module is adapted to query the status table of the user account when any one of the browsers sends a page refresh request, and determine whether to respond to the page refresh request according to the logout time of the user account.

根据本发明提供的技术方案,接收多个浏览器发送的同一用户账户的登录请求,根据登录请求分别生成各个浏览器的cookie信息,将cookie信息分别返回给各个浏览器,当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,在用户账户的状态表中更新用户账户退出时间,而当多个浏览器中其中任一个浏览器发送页面刷新请求时,则查询用户账户的状态表,根据用户账户退出时间确定是否响应页面刷新请求。本发明提供的技术方案不仅可以在多个浏览器中实现同一用户账户的同时登录,而且根据用户账户的状态表记录的用户账户退出时间确定是否响应页面刷新请求,有助于使用户账户的拥有者及时发现该用户账户是否被非法盗用,从而保护了用户账户的安全,减少了用户账户因被非法盗用而造成的损失。According to the technical solution provided by the present invention, the login request of the same user account sent by multiple browsers is received, the cookie information of each browser is respectively generated according to the login request, and the cookie information is returned to each browser respectively. When any one of the browsers sends a logout request for the user account, it updates the user account logout time in the status table of the user account, and when any one of the browsers sends a page refresh request, it queries the user account's logout time. The state table determines whether to respond to the page refresh request according to the user account logout time. The technical solution provided by the present invention can not only realize the simultaneous login of the same user account in multiple browsers, but also determine whether to respond to the page refresh request according to the user account logout time recorded in the user account status table, which helps to make the user account owner The operator can find out in time whether the user account has been illegally embezzled, thereby protecting the security of the user account and reducing the losses caused by the illegal embezzlement of the user account.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1示出了根据本发明一个实施例的用户账户登录方法的流程示意图;FIG. 1 shows a schematic flowchart of a method for logging in to a user account according to an embodiment of the present invention;

图2示出了根据本发明另一个实施例的用户账户登录方法的流程示意图;FIG. 2 shows a schematic flowchart of a method for logging in to a user account according to another embodiment of the present invention;

图3示出了根据本发明一个实施例的用户账户登录装置的功能结构示意图;FIG. 3 shows a schematic diagram of the functional structure of a user account login device according to an embodiment of the present invention;

图4示出了根据本发明另一个实施例的用户账户登录装置的功能结构示意图。Fig. 4 shows a schematic diagram of the functional structure of a user account login device according to another embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

图1示出了根据本发明一个实施例的用户账户登录方法的流程示意图,如图1所示,该方法包括如下步骤:Fig. 1 shows a schematic flowchart of a method for logging in to a user account according to an embodiment of the present invention. As shown in Fig. 1, the method includes the following steps:

步骤S100,接收多个浏览器发送的同一用户账户的登录请求,根据登录请求分别生成各个浏览器的cookie信息,将cookie信息分别返回给各个浏览器。Step S100, receiving login requests of the same user account sent by multiple browsers, generating cookie information of each browser according to the login requests, and returning the cookie information to each browser respectively.

当同一用户想要同时玩多个网页游戏,或者,用户的好友或亲人想要使用相同的账号登录来玩网页游戏时,可通过多个浏览器进行用户账户的登录。在步骤S100中,接收多个浏览器发送的同一用户账户的登录请求,然后根据登录请求分别生成各个浏览器的cookie信息,将cookie信息分别返回给各个浏览器,从而使各个浏览器都具有相对应的cookie信息。When the same user wants to play multiple web games at the same time, or a friend or relative of the user wants to use the same account to log in to play the web game, the user account can be logged in through multiple browsers. In step S100, the login request of the same user account sent by multiple browsers is received, and then the cookie information of each browser is respectively generated according to the login request, and the cookie information is returned to each browser respectively, so that each browser has a corresponding Corresponding cookie information.

步骤S101,当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,在用户账户的状态表中更新用户账户退出时间。Step S101 , when any one of the multiple browsers sends a user account logout request, update the user account logout time in the status table of the user account.

一个用户账户具有一个状态表,在用户账户的状态表中记录有需要记录的用户账户相关信息。例如,用户账户的状态表记录有用户账户退出时间,还可以记录有用户账户的禁用状态信息以及用户密码的修改时间。当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,需要在用户账户的状态表中更新用户账户退出时间。A user account has a state table, and information related to the user account that needs to be recorded is recorded in the state table of the user account. For example, the status table of the user account records the logout time of the user account, and may also record the disabled state information of the user account and the modification time of the user password. When any one of the multiple browsers sends a logout request of the user account, it needs to update the logout time of the user account in the state table of the user account.

步骤S102,当多个浏览器中其中任一个浏览器发送页面刷新请求时,查询用户账户的状态表,根据用户账户退出时间确定是否响应页面刷新请求。Step S102, when any one of the browsers sends a page refresh request, query the status table of the user account, and determine whether to respond to the page refresh request according to the logout time of the user account.

当多个浏览器中其中任一个浏览器发送页面刷新请求时,需要查询用户账户的状态表,根据用户账户的状态表中记录的用户账户退出时间来确定是否响应页面刷新请求。When any one of the multiple browsers sends a page refresh request, it needs to query the status table of the user account, and determine whether to respond to the page refresh request according to the logout time of the user account recorded in the status table of the user account.

步骤S101和步骤S102的执行顺序是可以发生变化的,具体的执行顺序可根据多个浏览器中其中任一个浏览器发送退出登录请求和页面刷新请求的先后顺序而定。例如,当多个浏览器中其中任一个浏览器先发送页面刷新请求,另一个浏览器再发送退出登录请求时,那么在这种情况下,先执行步骤S102,查询用户账户的状态表,根据用户账户退出时间确定是否响应页面刷新请求,再执行步骤S101,在用户账户的状态表中更新用户账户退出时间。The execution order of step S101 and step S102 can be changed, and the specific execution order can be determined according to the order in which any one of the browsers sends the logout request and the page refresh request. For example, when any one of the multiple browsers sends a page refresh request first, and another browser sends a logout request, then in this case, step S102 is first performed to query the status table of the user account, and according to The user account logout time determines whether to respond to the page refresh request, and then executes step S101 to update the user account logout time in the user account status table.

根据本实施例提供的用户账户登录方法,接收多个浏览器发送的同一用户账户的登录请求,根据登录请求分别生成各个浏览器的cookie信息,将cookie信息分别返回给各个浏览器,当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,在用户账户的状态表中更新用户账户退出时间,而当多个浏览器中其中任一个浏览器发送页面刷新请求时,则查询用户账户的状态表,根据用户账户退出时间确定是否响应页面刷新请求。本发明提供的技术方案不仅可以在多个浏览器中实现同一用户账户的同时登录,而且根据用户账户的状态表记录的用户账户退出时间确定是否响应页面刷新请求,有助于使用户账户的拥有者及时发现该用户账户是否被非法盗用,从而保护了用户账户的安全,减少了用户账户因被非法盗用而造成的损失。According to the user account login method provided in this embodiment, the login request of the same user account sent by multiple browsers is received, the cookie information of each browser is respectively generated according to the login request, and the cookie information is returned to each browser respectively. When any of the browsers sends a logout request for the user account, update the user account logout time in the status table of the user account, and when any of the browsers sends a page refresh request, query The status table of the user account determines whether to respond to the page refresh request according to the logout time of the user account. The technical solution provided by the present invention can not only realize the simultaneous login of the same user account in multiple browsers, but also determine whether to respond to the page refresh request according to the user account logout time recorded in the user account status table, which helps to make the user account owner The operator can find out in time whether the user account has been illegally embezzled, thereby protecting the security of the user account and reducing the losses caused by the illegal embezzlement of the user account.

图2示出了根据本发明另一个实施例的用户账户登录方法的流程示意图,如图2所示,该方法包括如下步骤:Fig. 2 shows a schematic flowchart of a user account login method according to another embodiment of the present invention. As shown in Fig. 2, the method includes the following steps:

步骤S200,接收多个浏览器在不同的登录时间发送的同一用户账户的登录请求,根据登录时间分别生成各个浏览器的cookie,将cookie分别返回给各个浏览器。Step S200, receiving login requests of the same user account sent by multiple browsers at different login times, generating cookies for each browser according to the login time, and returning the cookies to the browsers respectively.

当同一用户想要同时玩多个网页游戏,或者,用户的好友或亲人想要使用相同的账号登录来玩网页游戏时,可通过多个浏览器进行用户账户的登录,而其登录时间会有区别,那么就可以根据登录时间来分别生成各个浏览器的cookie,然后将cookie分别返回给各个浏览器,从而使各个浏览器都具有相对应的cookie信息。When the same user wants to play multiple web games at the same time, or the user’s friends or relatives want to use the same account to log in to play web games, they can log in to the user account through multiple browsers, and the log-in time will vary. difference, then you can generate cookies for each browser according to the login time, and then return the cookies to each browser respectively, so that each browser has corresponding cookie information.

步骤S201,当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,在用户账户的状态表中更新用户账户退出时间。Step S201, when any one of the multiple browsers sends a user account logout request, update the user account logout time in the status table of the user account.

在用户账户的状态表中记录有需要记录的用户账户相关信息。例如,用户账户的状态表记录有用户账户退出时间,还可以记录有用户账户的禁用状态信息以及用户密码的修改时间。当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,需要在用户账户的状态表中更新用户账户退出时间。该步骤不一定在步骤S202之前执行,也有可能在步骤S202之后执行,只有当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,才执行本步骤。The user account-related information that needs to be recorded is recorded in the state table of the user account. For example, the status table of the user account records the logout time of the user account, and may also record the disabled state information of the user account and the modification time of the user password. When any one of the multiple browsers sends a logout request of the user account, it needs to update the logout time of the user account in the state table of the user account. This step is not necessarily performed before step S202, and may also be performed after step S202. This step is only performed when any one of the multiple browsers sends a logout request for the user account.

步骤S202,当多个浏览器中其中任一个浏览器发送页面刷新请求时,记录页面刷新请求的发送时间。Step S202, when any one of the multiple browsers sends a page refresh request, record the sending time of the page refresh request.

在步骤S202中,当多个浏览器中其中任一个浏览器发送页面刷新请求时,为了便于管理页面刷新请求,也为了在后续步骤中便于判断是否需要响应该页面刷新请求,需要记录页面刷新请求的发送时间。In step S202, when any one of the multiple browsers sends a page refresh request, in order to facilitate the management of the page refresh request, and also in order to facilitate the judgment in subsequent steps whether to respond to the page refresh request, the page refresh request needs to be recorded sending time.

步骤S203,查询用户账户的状态表,得到用户账户退出时间。Step S203, query the status table of the user account to obtain the logout time of the user account.

在执行完步骤S202之后,在步骤S203中就可查询用户账户的状态表,得到用户账户退出时间。After step S202 is executed, in step S203 the state table of the user account can be queried to obtain the user account exit time.

其中,多个浏览器中其中任一个浏览器发送的页面刷新请求携带有浏览器的cookie信息,那么在步骤S203之前还可以包括:对浏览器的cookie信息进行校验。Wherein, the page refresh request sent by any one of the multiple browsers carries the browser's cookie information, so before step S203, it may further include: verifying the browser's cookie information.

例如,在用户通过多个浏览器中其中任一个浏览器成功登录用户账号之后,然后通过该浏览器发送页面刷新请求,由于页面刷新请求携带有浏览器的cookie信息,因此需要对浏览器的cookie信息进行校验,当校验成功后,才查询用户账户的状态表。For example, after the user successfully logs in to the user account through any of the browsers, and then sends a page refresh request through the browser, since the page refresh request carries the browser's cookie information, it is necessary to update the browser's cookie information. The information is verified, and when the verification is successful, the status table of the user account is queried.

步骤S204,判断用户账户退出时间是否为空;若是,则执行步骤S206;若否,则执行步骤S205。Step S204, judging whether the user account exit time is empty; if yes, execute step S206; if not, execute step S205.

因为只有当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,才在用户账户的状态表中更新用户账户退出时间,因此,在多个浏览器中其中任一个浏览器发送页面刷新请求之前,也有可能多个浏览器中其中任一个浏览器并没有发送用户账户的退出登录请求,在这种情况下,用户账户退出时间为空。因此,在步骤S204中,需要判断用户账户退出时间是否为空;若是,则执行步骤S206,响应页面刷新请求;若否,则执行步骤S205,对发送页面刷新请求的浏览器的登录时间是否早于用户账户退出时间进行判断。Because only when any of the multiple browsers sends a logout request for the user account, the user account logout time is updated in the state table of the user account, therefore, if any of the multiple browsers sends Before the page refresh request, it is also possible that any one of the multiple browsers does not send a logout request for the user account. In this case, the user account logout time is empty. Therefore, in step S204, it is necessary to judge whether the user account exit time is empty; if so, then execute step S206 to respond to the page refresh request; Judgment is made at the user account logout time.

步骤S205,判断发送页面刷新请求的浏览器的登录时间是否早于用户账户退出时间,且页面刷新请求的发送时间是否晚于用户账户退出时间;若是,则执行步骤S207;若否,则执行步骤S206。Step S205, judging whether the login time of the browser sending the page refresh request is earlier than the user account logout time, and whether the sending time of the page refresh request is later than the user account logout time; if yes, execute step S207; if not, execute step S207; S206.

假设,用户A在10:00通过浏览器1发送了用户账户C的登录请求,用户B在11:00通过浏览器2也发送了用户账户C的登录请求,根据这两个登录时间分别生成浏览器1的cookie和浏览器2的cookie,将浏览器1的cookie返回给浏览器1,将浏览器2的cookie返回给浏览器2。用户B使用用户账户C玩了一段时间的网页游戏后,在11:30通过浏览器2发送用户账户C的退出登录请求,而用户A在11:45通过浏览器1发送页面刷新请求,那么发送该页面刷新请求的浏览器1的登录时间为10:00,用户账户的状态表中记录的用户账户退出时间为11:30,该页面刷新请求的发送时间为11:45,那么经步骤S205判断得到发送页面刷新请求的浏览器的登录时间早于用户账户退出时间,且页面刷新请求的发送时间晚于用户账户退出时间,那么执行步骤S207。如果用户账户C的拥有者为用户A,用户B并没有征得用户A的同意使用了用户账户C,也就是说,用户B非法盗用了用户A的用户账户C,通过此方案,用户A通过浏览器1发送页面刷新请求,却收到了用户账户已退出登录的通知消息,那么用户A就可及时判断出自己的用户账户C被非法盗用了,从而可及时修改密码,保护用户账户的安全,减少用户账户因被非法盗用而造成的损失。Assume that user A sends a login request of user account C through browser 1 at 10:00, and user B also sends a login request of user account C through browser 2 at 11:00, and generates browsing information based on the two login times. Browser 1's cookie and browser 2's cookie, browser 1's cookie is returned to browser 1, and browser 2's cookie is returned to browser 2. After user B uses user account C to play web games for a period of time, he sends a logout request of user account C through browser 2 at 11:30, while user A sends a page refresh request through browser 1 at 11:45, then sends The login time of the browser 1 of the page refresh request is 10:00, the user account exit time recorded in the status table of the user account is 11:30, and the sending time of the page refresh request is 11:45, then judged through step S205 If it is obtained that the login time of the browser sending the page refresh request is earlier than the user account logout time, and the sending time of the page refresh request is later than the user account logout time, then step S207 is executed. If the owner of user account C is user A, user B has used user account C without the consent of user A, that is to say, user B has illegally embezzled user A's user account C. Browser 1 sends a page refresh request, but receives a notification message that the user account has been logged out, then user A can promptly determine that his user account C has been illegally embezzled, so that he can change the password in time to protect the security of the user account. Reduce losses caused by illegal misappropriation of user accounts.

步骤S206,响应页面刷新请求。Step S206, responding to the page refresh request.

在经步骤S204判断得到用户账户退出时间为空时和经步骤S205判断出发送页面刷新请求的浏览器的登录时间晚于用户账户退出时间,则执行步骤S206,响应页面刷新请求。When step S204 determines that the user account logout time is empty and step S205 determines that the login time of the browser sending the page refresh request is later than the user account logout time, step S206 is executed to respond to the page refresh request.

步骤S207,向发送页面刷新请求的浏览器发送用户账户已退出登录的通知消息。Step S207, sending a notification message that the user account has been logged out to the browser that sent the page refresh request.

如果经步骤S205判断得到发送页面刷新请求的浏览器的登录时间早于用户账户退出时间,且页面刷新请求的发送时间晚于用户账户退出时间,那么执行步骤S207,向发送页面刷新请求的浏览器发送用户账户已退出登录的通知消息。If it is judged by step S205 that the login time of the browser that sent the page refresh request is earlier than the user account logout time, and the sending time of the page refresh request is later than the user account logout time, then step S207 is executed to send the page refresh request to the browser that sent the page refresh request. Send a notification message that the user account has been logged out.

根据本实施例提供的用户账户登录方法,根据登录时间分别生成各个浏览器的cookie,将cookie分别返回给各个浏览器,通过发送页面刷新请求的浏览器的登录时间、用户账户退出时间和页面刷新请求的发送时间来判断是否响应页面刷新请求。本发明提供的技术方案不仅可以在多个浏览器中实现同一用户账户的同时登录,而且根据用户账户的状态表记录的用户账户退出时间确定是否响应页面刷新请求,有助于使用户账户的拥有者及时发现该用户账户是否被非法盗用,从而保护了用户账户的安全,减少了用户账户因被非法盗用而造成的损失。According to the user account login method provided in this embodiment, the cookie of each browser is generated respectively according to the login time, and the cookie is returned to each browser respectively. The sending time of the request is used to determine whether to respond to the page refresh request. The technical solution provided by the present invention can not only realize the simultaneous login of the same user account in multiple browsers, but also determine whether to respond to the page refresh request according to the user account logout time recorded in the user account status table, which helps to make the user account owner The operator can find out in time whether the user account has been illegally embezzled, thereby protecting the security of the user account and reducing the losses caused by the illegal embezzlement of the user account.

图3示出了根据本发明一个实施例的用户账户登录装置的功能结构示意图,如图3所示,该用户账户登录装置包括:生成模块310、更新模块320和处理模块330。FIG. 3 shows a functional structural diagram of a user account login device according to an embodiment of the present invention. As shown in FIG. 3 , the user account login device includes: a generation module 310 , an update module 320 and a processing module 330 .

生成模块310,适于接收多个浏览器发送的同一用户账户的登录请求,根据登录请求分别生成各个浏览器的cookie信息,将cookie信息分别返回给各个浏览器。The generating module 310 is adapted to receive login requests of the same user account sent by multiple browsers, respectively generate cookie information of each browser according to the login requests, and return the cookie information to each browser respectively.

通过生成模块310接收多个浏览器发送的同一用户账户的登录请求,然后根据登录请求分别生成各个浏览器的cookie信息,将cookie信息分别返回给各个浏览器,从而使各个浏览器都具有相对应的cookie信息。The generation module 310 receives login requests of the same user account sent by multiple browsers, then generates cookie information for each browser according to the login requests, and returns the cookie information to each browser, so that each browser has a corresponding cookie information.

更新模块320,适于当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,在用户账户的状态表中更新用户账户退出时间。The update module 320 is adapted to update the user account logout time in the status table of the user account when any one of the multiple browsers sends a logout request of the user account.

一个用户账户具有一个状态表,在用户账户的状态表中记录有需要记录的用户账户相关信息。例如,用户账户的状态表记录有用户账户退出时间,还可以记录有用户账户的禁用状态信息以及用户密码的修改时间。当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,更新模块320需要在用户账户的状态表中更新用户账户退出时间。A user account has a state table, and information related to the user account that needs to be recorded is recorded in the state table of the user account. For example, the status table of the user account records the logout time of the user account, and may also record the disabled state information of the user account and the modification time of the user password. When any one of the multiple browsers sends a logout request of the user account, the update module 320 needs to update the logout time of the user account in the state table of the user account.

处理模块330,适于当多个浏览器中其中任一个浏览器发送页面刷新请求时,查询用户账户的状态表,根据用户账户退出时间确定是否响应页面刷新请求。The processing module 330 is adapted to query the status table of the user account when any one of the browsers sends a page refresh request, and determine whether to respond to the page refresh request according to the logout time of the user account.

当多个浏览器中其中任一个浏览器发送页面刷新请求时,处理模块330需要查询用户账户的状态表,根据用户账户的状态表中记录的用户账户退出时间来确定是否响应页面刷新请求。When any one of the multiple browsers sends a page refresh request, the processing module 330 needs to query the status table of the user account, and determine whether to respond to the page refresh request according to the logout time of the user account recorded in the status table of the user account.

根据本实施例提供的用户账户登录装置,通过生成模块接收多个浏览器发送的同一用户账户的登录请求,根据登录请求分别生成各个浏览器的cookie信息,将cookie信息分别返回给各个浏览器,当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,通过更新模块在用户账户的状态表中更新用户账户退出时间,而当多个浏览器中其中任一个浏览器发送页面刷新请求时,则通过处理模块查询用户账户的状态表,根据用户账户退出时间确定是否响应页面刷新请求。本发明提供的技术方案不仅可以在多个浏览器中实现同一用户账户的同时登录,而且根据用户账户的状态表记录的用户账户退出时间确定是否响应页面刷新请求,有助于使用户账户的拥有者及时发现该用户账户是否被非法盗用,从而保护了用户账户的安全,减少了用户账户因被非法盗用而造成的损失。According to the user account login device provided in this embodiment, the login request of the same user account sent by multiple browsers is received by the generating module, the cookie information of each browser is respectively generated according to the login request, and the cookie information is returned to each browser respectively, When any one of the multiple browsers sends a logout request for the user account, the user account logout time is updated in the status table of the user account through the update module, and when any one of the multiple browsers sends the page When refreshing the request, the status table of the user account is queried through the processing module, and whether to respond to the page refreshing request is determined according to the logout time of the user account. The technical solution provided by the present invention can not only realize the simultaneous login of the same user account in multiple browsers, but also determine whether to respond to the page refresh request according to the user account logout time recorded in the user account status table, which helps to make the user account owner The operator can find out in time whether the user account has been illegally embezzled, thereby protecting the security of the user account and reducing the losses caused by the illegal embezzlement of the user account.

图4示出了根据本发明另一个实施例的用户账户登录装置的功能结构示意图,如图4所示,该用户账户登录装置包括:生成模块410、更新模块420和处理模块430。FIG. 4 shows a functional structural diagram of a user account login device according to another embodiment of the present invention. As shown in FIG. 4 , the user account login device includes: a generation module 410 , an update module 420 and a processing module 430 .

生成模块410,适于接收多个浏览器在不同的登录时间发送的同一用户账户的登录请求,根据登录时间分别生成各个浏览器的cookie,将cookie分别返回给各个浏览器。The generation module 410 is adapted to receive login requests of the same user account sent by multiple browsers at different login times, generate cookies for each browser according to the login time, and return the cookies to the browsers respectively.

当同一用户想要同时玩多个网页游戏,或者,用户的好友或亲人想要使用相同的账号登录来玩网页游戏时,可通过多个浏览器进行用户账户的登录,而其登录时间会有区别,那么生成模块410就可以根据登录时间来分别生成各个浏览器的cookie,然后将cookie分别返回给各个浏览器,从而使各个浏览器都具有相对应的cookie信息。When the same user wants to play multiple web games at the same time, or the user’s friends or relatives want to use the same account to log in to play web games, they can log in to the user account through multiple browsers, and the log-in time will vary. difference, then the generation module 410 can respectively generate cookies for each browser according to the login time, and then return the cookies to each browser respectively, so that each browser has corresponding cookie information.

更新模块420,适于当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,在用户账户的状态表中更新用户账户退出时间。The update module 420 is adapted to update the user account logout time in the status table of the user account when any one of the multiple browsers sends a logout request of the user account.

在用户账户的状态表中记录有需要记录的用户账户相关信息。例如,用户账户的状态表记录有用户账户退出时间,还可以记录有用户账户的禁用状态信息以及用户密码的修改时间。当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,需要更新模块420在用户账户的状态表中更新用户账户退出时间。更新模块420不一定在处理模块430之前被触发,也有可能在处理模块430之后被触发,只有当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,才触发更新模块420。The user account-related information that needs to be recorded is recorded in the state table of the user account. For example, the status table of the user account records the logout time of the user account, and may also record the disabled state information of the user account and the modification time of the user password. When any one of the multiple browsers sends a logout request of the user account, the updating module 420 needs to update the logout time of the user account in the state table of the user account. The update module 420 is not necessarily triggered before the processing module 430, and may be triggered after the processing module 430, and the update module 420 is triggered only when any one of the multiple browsers sends a logout request of the user account.

处理模块430,适于当多个浏览器中其中任一个浏览器发送页面刷新请求时,查询用户账户的状态表,根据用户账户退出时间确定是否响应页面刷新请求。The processing module 430 is adapted to query the status table of the user account when any one of the browsers sends a page refresh request, and determine whether to respond to the page refresh request according to the logout time of the user account.

具体地,处理模块430包括:记录单元431、查询单元432、第一处理单元433和第二处理单元434。Specifically, the processing module 430 includes: a recording unit 431 , a query unit 432 , a first processing unit 433 and a second processing unit 434 .

记录单元431,适于当多个浏览器中其中任一个浏览器发送页面刷新请求时,记录页面刷新请求的发送时间。The recording unit 431 is adapted to record the sending time of the page refresh request when any one of the multiple browsers sends a page refresh request.

当多个浏览器中其中任一个浏览器发送页面刷新请求时,为了便于管理页面刷新请求,也为了后续便于判断是否需要响应该页面刷新请求,记录单元431需要记录页面刷新请求的发送时间。When any one of the multiple browsers sends a page refresh request, the recording unit 431 needs to record the sending time of the page refresh request for the convenience of managing the page refresh request and for the convenience of subsequently determining whether to respond to the page refresh request.

查询单元432,适于查询用户账户的状态表,得到用户账户退出时间。The query unit 432 is adapted to query the status table of the user account to obtain the logout time of the user account.

第一处理单元433,适于判断发送页面刷新请求的浏览器的登录时间是否早于用户账户退出时间,且页面刷新请求的发送时间是否晚于用户账户退出时间;若是,则向发送页面刷新请求的浏览器发送用户账户已退出登录的通知消息。The first processing unit 433 is adapted to determine whether the login time of the browser sending the page refresh request is earlier than the user account logout time, and whether the sending time of the page refresh request is later than the user account logout time; if so, then send the page refresh request to The browser sends a notification message that the user account has been logged out.

第一处理单元433进一步适于:若判断出发送页面刷新请求的浏览器的登录时间晚于用户账户退出时间,则响应页面刷新请求。The first processing unit 433 is further adapted to: respond to the page refresh request if it is determined that the login time of the browser sending the page refresh request is later than the user account logout time.

假设,用户A在10:00通过浏览器1发送了用户账户C的登录请求,用户B在11:00通过浏览器2也发送了用户账户C的登录请求,根据这两个登录时间分别生成浏览器1的cookie和浏览器2的cookie,将浏览器1的cookie返回给浏览器1,将浏览器2的cookie返回给浏览器2。用户B使用用户账户C玩了一段时间的网页游戏后,在11:30通过浏览器2发送用户账户C的退出登录请求,而用户A在11:45通过浏览器1发送页面刷新请求,那么发送该页面刷新请求的浏览器1的登录时间为10:00,用户账户的状态表中记录的用户账户退出时间为11:30,该页面刷新请求的发送时间为11:45,那么经第一处理单元433判断得到发送页面刷新请求的浏览器的登录时间早于用户账户退出时间,且页面刷新请求的发送时间晚于用户账户退出时间,则向发送页面刷新请求的浏览器发送用户账户已退出登录的通知消息。Assume that user A sends a login request of user account C through browser 1 at 10:00, and user B also sends a login request of user account C through browser 2 at 11:00, and generates browsing information based on the two login times. Browser 1's cookie and browser 2's cookie, browser 1's cookie is returned to browser 1, and browser 2's cookie is returned to browser 2. After user B uses user account C to play web games for a period of time, he sends a logout request of user account C through browser 2 at 11:30, while user A sends a page refresh request through browser 1 at 11:45, then sends The login time of browser 1 for the page refresh request is 10:00, the user account exit time recorded in the user account status table is 11:30, and the sending time of the page refresh request is 11:45, then after the first processing Unit 433 judges that the login time of the browser sending the page refresh request is earlier than the user account logout time, and the sending time of the page refresh request is later than the user account logout time, then sends the user account logout time to the browser sending the page refresh request notification message.

处理模块430还可包括第二处理单元434,适于判断用户账户退出时间是否为空,若是,则响应页面刷新请求;若否,则触发第一处理单元433。The processing module 430 may further include a second processing unit 434 adapted to determine whether the user account logout time is empty, and if so, respond to a page refresh request; if not, trigger the first processing unit 433 .

因为只有当多个浏览器中其中任一个浏览器发送用户账户的退出登录请求时,才在用户账户的状态表中更新用户账户退出时间,因此,在多个浏览器中其中任一个浏览器发送页面刷新请求之前,也有可能多个浏览器中其中任一个浏览器并没有发送用户账户的退出登录请求,在这种情况下,用户账户退出时间为空。因此,第二处理单元434需要判断用户账户退出时间是否为空;若是,则响应页面刷新请求;若否,则触发第一处理单元433,对发送页面刷新请求的浏览器的登录时间是否早于用户账户退出时间进行判断。Because only when any of the multiple browsers sends a logout request for the user account, the user account logout time is updated in the state table of the user account, therefore, if any of the multiple browsers sends Before the page refresh request, it is also possible that any one of the multiple browsers does not send a logout request for the user account. In this case, the user account logout time is empty. Therefore, the second processing unit 434 needs to judge whether the user account exit time is empty; if so, then respond to the page refresh request; The user account logout time is judged.

如果多个浏览器中其中任一个浏览器发送的页面刷新请求携带有浏览器的cookie信息,那么处理模块430进一步包括检验单元435,对浏览器的cookie信息进行校验。检验单元435可设置在查询单元432之前。If the page refresh request sent by any one of the multiple browsers carries the browser's cookie information, then the processing module 430 further includes a verification unit 435 to verify the browser's cookie information. The checking unit 435 can be arranged before the query unit 432 .

根据本实施例提供的用户账户登录装置,生成模块根据登录时间分别生成各个浏览器的cookie,将cookie分别返回给各个浏览器,通过发送页面刷新请求的浏览器的登录时间、用户账户退出时间和页面刷新请求的发送时间来判断是否响应页面刷新请求。本发明提供的技术方案不仅可以在多个浏览器中实现同一用户账户的同时登录,而且根据用户账户的状态表记录的用户账户退出时间确定是否响应页面刷新请求,有助于使用户账户的拥有者及时发现该用户账户是否被非法盗用,从而保护了用户账户的安全,减少了用户账户因被非法盗用而造成的损失。According to the user account login device provided in this embodiment, the generation module respectively generates cookies for each browser according to the login time, and returns the cookies to each browser respectively. The sending time of the page refresh request is used to determine whether to respond to the page refresh request. The technical solution provided by the present invention can not only realize the simultaneous login of the same user account in multiple browsers, but also determine whether to respond to the page refresh request according to the user account logout time recorded in the user account status table, which helps to make the user account owner The operator can find out in time whether the user account has been illegally embezzled, thereby protecting the security of the user account and reducing the losses caused by the illegal embezzlement of the user account.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any one of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明公开了:The present invention discloses:

A1、一种用户账户登录方法,包括:A1. A user account login method, comprising:

接收多个浏览器发送的同一用户账户的登录请求,根据登录请求分别生成各个浏览器的cookie信息,将cookie信息分别返回给各个浏览器;Receive the login request of the same user account sent by multiple browsers, generate cookie information of each browser according to the login request, and return the cookie information to each browser respectively;

当所述多个浏览器中其中任一个浏览器发送所述用户账户的退出登录请求时,在所述用户账户的状态表中更新用户账户退出时间;When any one of the browsers sends a logout request for the user account, update the user account logout time in the status table of the user account;

当所述多个浏览器中其中任一个浏览器发送页面刷新请求时,查询所述用户账户的状态表,根据所述用户账户退出时间确定是否响应所述页面刷新请求。When any one of the multiple browsers sends a page refresh request, query the status table of the user account, and determine whether to respond to the page refresh request according to the logout time of the user account.

A2、根据A1所述的方法,所述接收多个浏览器发送的同一用户账户的登录请求,根据登录请求分别生成各个浏览器的cookie,将cookie分别返回给各个浏览器进一步包括:A2. According to the method described in A1, the receiving of the login requests of the same user account sent by multiple browsers, respectively generating cookies of each browser according to the login requests, and returning the cookies to each browser further includes:

接收多个浏览器在不同的登录时间发送的同一用户账户的登录请求,根据登录时间分别生成各个浏览器的cookie,将cookie分别返回给各个浏览器。Receive login requests of the same user account sent by multiple browsers at different login times, generate cookies for each browser according to the login time, and return the cookies to each browser respectively.

A3、根据A2所述的方法,所述当所述多个浏览器中其中任一个浏览器发送页面刷新请求时,查询用户账户的状态表,根据所述用户账户退出时间确定是否响应所述页面刷新请求进一步包括:A3. According to the method described in A2, when any one of the multiple browsers sends a page refresh request, query the status table of the user account, and determine whether to respond to the page according to the exit time of the user account Refresh requests further include:

当所述多个浏览器中其中任一个浏览器发送页面刷新请求时,记录页面刷新请求的发送时间;When any one of the browsers sends a page refresh request, record the sending time of the page refresh request;

查询用户账户的状态表,得到所述用户账户退出时间;Query the status table of the user account to obtain the exit time of the user account;

判断发送页面刷新请求的浏览器的登录时间是否早于所述用户账户退出时间,且所述页面刷新请求的发送时间是否晚于所述用户账户退出时间;若是,则向发送页面刷新请求的浏览器发送用户账户已退出登录的通知消息。Judging whether the login time of the browser sending the page refresh request is earlier than the user account exit time, and whether the sending time of the page refresh request is later than the user account exit time; The server sends a notification message that the user account has been logged out.

A4、根据A3所述的方法,在判断发送页面刷新请求的浏览器的登录时间是否早于所述用户账户退出时间之前还包括:判断所述用户账户退出时间是否为空,若是,则响应所述页面刷新请求;A4. According to the method described in A3, before judging whether the login time of the browser sending the page refresh request is earlier than the user account logout time, it also includes: judging whether the user account logout time is empty, and if so, responding to the The above page refresh request;

若否,则执行判断发送页面刷新请求的浏览器的登录时间是否早于所述用户账户退出时间的步骤。If not, the step of judging whether the login time of the browser sending the page refresh request is earlier than the logout time of the user account is executed.

A5、根据A3或A4所述的方法,若判断出发送页面刷新请求的浏览器的登录时间晚于所述用户账户退出时间,则响应所述页面刷新请求。A5. According to the method described in A3 or A4, if it is determined that the login time of the browser sending the page refresh request is later than the logout time of the user account, respond to the page refresh request.

A6、根据A1-A5任一项所述的方法,所述多个浏览器中其中任一个浏览器发送的页面刷新请求携带有所述浏览器的cookie信息;A6, according to the method described in any one of A1-A5, the page refresh request sent by any one of the browsers in the plurality of browsers carries the cookie information of the browser;

所述在查询用户账户的状态表之前还包括:对所述浏览器的cookie信息进行校验。Before querying the state table of the user account, the method further includes: verifying the cookie information of the browser.

A7、根据A1-A6任一项所述的方法,所述用户账户的状态表还记录有:用户账户的禁用状态信息以及用户密码的修改时间。A7. According to the method described in any one of A1-A6, the state table of the user account further records: the disabled state information of the user account and the modification time of the user password.

B8、一种用户账户登录装置,包括:B8. A user account login device, comprising:

生成模块,适于接收多个浏览器发送的同一用户账户的登录请求,根据登录请求分别生成各个浏览器的cookie信息,将cookie信息分别返回给各个浏览器;The generating module is suitable for receiving login requests of the same user account sent by multiple browsers, generating cookie information of each browser respectively according to the login requests, and returning the cookie information to each browser respectively;

更新模块,适于当所述多个浏览器中其中任一个浏览器发送所述用户账户的退出登录请求时,在所述用户账户的状态表中更新用户账户退出时间;An update module, adapted to update the user account logout time in the status table of the user account when any one of the plurality of browsers sends a logout request of the user account;

处理模块,适于当所述多个浏览器中其中任一个浏览器发送页面刷新请求时,查询所述用户账户的状态表,根据所述用户账户退出时间确定是否响应所述页面刷新请求。The processing module is adapted to query the status table of the user account when any one of the browsers sends a page refresh request, and determine whether to respond to the page refresh request according to the logout time of the user account.

B9、根据B8所述的装置,所述生成模块进一步适于:B9. According to the device described in B8, the generating module is further adapted to:

接收多个浏览器在不同的登录时间发送的同一用户账户的登录请求,根据登录时间分别生成各个浏览器的cookie,将cookie分别返回给各个浏览器。Receive login requests of the same user account sent by multiple browsers at different login times, generate cookies for each browser according to the login time, and return the cookies to each browser respectively.

B10、根据B9所述的装置,所述处理模块包括:记录单元、查询单元和第一处理单元;B10, according to the device described in B9, the processing module includes: a recording unit, a query unit and a first processing unit;

所述记录单元,适于当所述多个浏览器中其中任一个浏览器发送页面刷新请求时,记录页面刷新请求的发送时间;The recording unit is adapted to record the sending time of the page refresh request when any one of the multiple browsers sends a page refresh request;

所述查询单元,适于查询用户账户的状态表,得到所述用户账户退出时间;The query unit is adapted to query the status table of the user account to obtain the exit time of the user account;

所述第一处理单元,适于判断发送页面刷新请求的浏览器的登录时间是否早于所述用户账户退出时间,且所述页面刷新请求的发送时间是否晚于所述用户账户退出时间;若是,则向发送页面刷新请求的浏览器发送用户账户已退出登录的通知消息。The first processing unit is adapted to determine whether the login time of the browser sending the page refresh request is earlier than the user account logout time, and whether the sending time of the page refresh request is later than the user account logout time; if so , then send a notification message that the user account has been logged out to the browser that sent the page refresh request.

B11、根据B10所述的装置,所述处理模块还包括:第二处理单元,适于判断所述用户账户退出时间是否为空,若是,则响应所述页面刷新请求;若否,则触发所述第一处理单元。B11. According to the device described in B10, the processing module further includes: a second processing unit adapted to judge whether the user account exit time is empty, if so, respond to the page refresh request; if not, trigger the Describe the first processing unit.

B12、根据B10或B11所述的装置,所述第一处理单元进一步适于:若判断出发送页面刷新请求的浏览器的登录时间晚于所述用户账户退出时间,则响应所述页面刷新请求。B12. According to the device described in B10 or B11, the first processing unit is further adapted to: if it is determined that the login time of the browser sending the page refresh request is later than the user account exit time, then respond to the page refresh request .

B13、根据B8-B12任一项所述的装置,所述多个浏览器中其中任一个浏览器发送的页面刷新请求携带有所述浏览器的cookie信息;B13, according to the device described in any one of B8-B12, the page refresh request sent by any one of the browsers in the plurality of browsers carries the cookie information of the browser;

所述处理模块进一步包括:检验单元,适于对浏览器的cookie信息进行校验。The processing module further includes: a verification unit, adapted to verify the cookie information of the browser.

B14、根据B8-B13任一项所述的装置,所述用户账户的状态表还记录有:用户账户的禁用状态信息以及用户密码的修改时间。B14. According to the device described in any one of B8-B13, the state table of the user account further records: the disabled state information of the user account and the modification time of the user password.

Claims (10)

CN201510641519.2A2015-09-302015-09-30User account login method and deviceActiveCN105162805B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510641519.2ACN105162805B (en)2015-09-302015-09-30User account login method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510641519.2ACN105162805B (en)2015-09-302015-09-30User account login method and device

Publications (2)

Publication NumberPublication Date
CN105162805Atrue CN105162805A (en)2015-12-16
CN105162805B CN105162805B (en)2018-10-30

Family

ID=54803559

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510641519.2AActiveCN105162805B (en)2015-09-302015-09-30User account login method and device

Country Status (1)

CountryLink
CN (1)CN105162805B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106982226A (en)*2017-04-272017-07-25成都奇鲁科技有限公司Automatic logging method and device
CN108279970A (en)*2017-12-282018-07-13北京海泰方圆科技股份有限公司The switching method and apparatus of browser kernel
CN111199003A (en)*2019-12-252020-05-26深圳市科漫达智能管理科技有限公司Multi-webpage window management method and device and terminal equipment
CN112163201A (en)*2020-09-292021-01-01江西江铃集团新能源汽车有限公司User login management method and system, readable storage medium and electronic device
CN117714522A (en)*2023-11-282024-03-15航天信息股份有限公司 A method and system for sharing website login status

Citations (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2009104829A1 (en)*2008-02-222009-08-27LogicplantWeb browsing environment provider system for multiple users and control method thereof
CN101552780A (en)*2009-04-302009-10-07用友软件股份有限公司Verification method and verification device
CN102025648A (en)*2009-09-162011-04-20腾讯科技(深圳)有限公司Instant messaging method and server
CN102194062A (en)*2010-03-052011-09-21新奥特(北京)视频技术有限公司Method and device for controlling different-place login in manuscript system
CN102368764A (en)*2011-09-102012-03-07上海量明科技发展有限公司Method for carrying out communication through multiple points of presence, system and client thereof
CN102882769A (en)*2012-09-212013-01-16腾讯科技(深圳)有限公司Instant communication method, terminal and system, and communication server
CN102970360A (en)*2012-11-132013-03-13北京奇虎科技有限公司System for controlling browser user login
CN102984231A (en)*2012-11-202013-03-20四川长虹电器股份有限公司Interactive method based on browser
CN102984222A (en)*2012-11-132013-03-20北京奇虎科技有限公司 Method and Client for Controlling Browser User Login
CN103002019A (en)*2012-11-142013-03-27北京奇虎科技有限公司 Browser and method for browser to send page game message
CN103024062A (en)*2012-12-242013-04-03腾讯科技(深圳)有限公司Data sharing method, clients and data sharing system
CN103066701A (en)*2012-12-192013-04-24云南电力调度控制中心Power grid dispatching real-time operation command method and system
CN103095658A (en)*2011-11-032013-05-08北京神州泰岳软件股份有限公司Account login method and system
CN103797751A (en)*2012-07-272014-05-14华为技术有限公司 Method and device for querying user online status
CN104009905A (en)*2013-02-212014-08-27中国移动通信集团公司 An instant message forwarding method and device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2009104829A1 (en)*2008-02-222009-08-27LogicplantWeb browsing environment provider system for multiple users and control method thereof
CN101552780A (en)*2009-04-302009-10-07用友软件股份有限公司Verification method and verification device
CN102025648A (en)*2009-09-162011-04-20腾讯科技(深圳)有限公司Instant messaging method and server
CN102194062A (en)*2010-03-052011-09-21新奥特(北京)视频技术有限公司Method and device for controlling different-place login in manuscript system
CN102368764A (en)*2011-09-102012-03-07上海量明科技发展有限公司Method for carrying out communication through multiple points of presence, system and client thereof
CN103095658A (en)*2011-11-032013-05-08北京神州泰岳软件股份有限公司Account login method and system
CN103797751A (en)*2012-07-272014-05-14华为技术有限公司 Method and device for querying user online status
CN102882769A (en)*2012-09-212013-01-16腾讯科技(深圳)有限公司Instant communication method, terminal and system, and communication server
CN102970360A (en)*2012-11-132013-03-13北京奇虎科技有限公司System for controlling browser user login
CN102984222A (en)*2012-11-132013-03-20北京奇虎科技有限公司 Method and Client for Controlling Browser User Login
CN103002019A (en)*2012-11-142013-03-27北京奇虎科技有限公司 Browser and method for browser to send page game message
CN102984231A (en)*2012-11-202013-03-20四川长虹电器股份有限公司Interactive method based on browser
CN103066701A (en)*2012-12-192013-04-24云南电力调度控制中心Power grid dispatching real-time operation command method and system
CN103024062A (en)*2012-12-242013-04-03腾讯科技(深圳)有限公司Data sharing method, clients and data sharing system
CN104009905A (en)*2013-02-212014-08-27中国移动通信集团公司 An instant message forwarding method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106982226A (en)*2017-04-272017-07-25成都奇鲁科技有限公司Automatic logging method and device
CN106982226B (en)*2017-04-272020-08-14成都安易迅科技有限公司Automatic login method and device
CN108279970A (en)*2017-12-282018-07-13北京海泰方圆科技股份有限公司The switching method and apparatus of browser kernel
CN111199003A (en)*2019-12-252020-05-26深圳市科漫达智能管理科技有限公司Multi-webpage window management method and device and terminal equipment
CN111199003B (en)*2019-12-252023-11-10深圳市科漫达智能管理科技有限公司Multi-webpage window management method, management device and terminal equipment
CN112163201A (en)*2020-09-292021-01-01江西江铃集团新能源汽车有限公司User login management method and system, readable storage medium and electronic device
CN117714522A (en)*2023-11-282024-03-15航天信息股份有限公司 A method and system for sharing website login status

Also Published As

Publication numberPublication date
CN105162805B (en)2018-10-30

Similar Documents

PublicationPublication DateTitle
US9451039B1 (en)Push notifications for web applications and browser extensions
US10666643B2 (en)End user initiated access server authenticity check
US10643149B2 (en)Whitelist construction
US10419425B2 (en)Method, device, and system for access control of a cloud hosting service
US9183361B2 (en)Resource access authorization
TWI637286B (en)Method for on demand passwords and system thereof
EP2721521B1 (en)Virtual identity manager
CN105162805B (en)User account login method and device
US20240146543A1 (en)Obtaining a domain certificate utilizing a proxy server
TWI654533B (en) Method for downloading and installing client, server and client
CN104580364B (en)A kind of method and apparatus of resource sharing
CN104158818B (en)A kind of single-point logging method and system
US20110087692A1 (en)Application whitelisting in a cloud-based computing device
JP2005317022A (en)Account creation via mobile device
CN104917794A (en) A data sharing method, device and system
JP2017045462A (en)System and method for authenticating user by using contact list
US12069166B2 (en)Quorum-based authorization
CN102932471B (en)Browser logon server and realize browser log in method and system
CN102946396B (en)User agent's device, host web server and user authen method
CN108173839A (en) Rights management method and system
CN105612731A (en)Roaming internet-accessible application state across trusted and untrusted platforms
CN103034942B (en)For the method and system of network payment
WO2016058478A1 (en)Data acquisition method, device and system
US20250023952A1 (en)Client cookie management system
CN102946397B (en)User authen method and system

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right

Effective date of registration:20220715

Address after:Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after:BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before:100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before:BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before:Qizhi software (Beijing) Co.,Ltd.

TR01Transfer of patent right

[8]ページ先頭

©2009-2025 Movatter.jp