CN110300154B - 基于插件实现多浏览器session共享方法 - Google Patents

基于插件实现多浏览器session共享方法 Download PDF

Info

Publication number
CN110300154B
CN110300154B CN201910460165.XA CN201910460165A CN110300154B CN 110300154 B CN110300154 B CN 110300154B CN 201910460165 A CN201910460165 A CN 201910460165A CN 110300154 B CN110300154 B CN 110300154B
Authority
CN
China
Prior art keywords
plug
web application
server
browser
session information
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
CN201910460165.XA
Other languages
English (en)
Other versions
CN110300154A (zh
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.)
Shanghai Para Software Co ltd
Original Assignee
Shanghai Para Software 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 Shanghai Para Software Co ltd filed Critical Shanghai Para Software Co ltd
Priority to CN201910460165.XA priority Critical patent/CN110300154B/zh
Publication of CN110300154A publication Critical patent/CN110300154A/zh
Application granted granted Critical
Publication of CN110300154B publication Critical patent/CN110300154B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • 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
    • 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/14Session management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明涉及一种基于插件实现多浏览器session共享方法,其特征在于,包括以下步骤:插件服务器持有并保存与当前Web应用相对应的插件共享session信息;用户在其他浏览器上打开Web应用时,Web应用的客户端插件通过插件服务器提供的Web API从插件服务器获取已保存的与当前Web应用相对应的插件共享session信息,自动提交认证。本发明旨在确保信息安全的前提下,提升用户操作的便利性,同时为Web应用跨浏览器提供一体化解决方案。Web应用服务可基于此为用户提供更多便利。

Description

基于插件实现多浏览器session共享方法
技术领域
本发明涉及一种多个不同浏览器上的同一Web应用共享浏览器Session的方法。
背景技术
浏览器Session是浏览器和服务的会话对象,可以算是用户的网络“身份证”。在web开发中,服务器可以为每个用户浏览器创建一个会话对象(session对象),注意:一个浏览器独占一个session对象(默认情况下)。因此,在需要保存用户数据时,服务器程序可以把用户数据写到用户浏览器独占的session中,当用户使用浏览器访问其它程序时,其它程序可以从用户的session中取出该用户的数据,为用户服务。
然而,现实情况下,因为应用兼容性问题,用户往往需要流连于各个浏览器。但由于session不能在不同的浏览器之间共享,导致用户需要在不同的浏览器上做许多相同的事情(比如:登录认证),纷繁复杂的用户名密码信息让用户苦不堪言。
发明内容
本发明的目的是:实现多个浏览器间的session共享。
为了达到上述目的,本发明的技术方案是提供了一种基于插件实现多浏览器session共享方法,其特征在于,包括以下步骤:
步骤1、用户第一次在浏览器一上打开Web应用时,用户手动输入登录认证信息后,向Web应用服务器手动提交认证,认证成功后,Web应用将认证成功后的session信息通过插件服务器提供的Web API提交给插件服务器,插件服务器持有并保存与当前Web应用相对应的插件共享session信息;
步骤2、用户在浏览器二上打开与步骤1相同的Web应用,浏览器二与浏览器一为同一浏览器或为不同浏览器,Web应用的客户端插件通过插件服务器提供的Web API从插件服务器获取步骤1中已保存的与当前Web应用相对应的插件共享session信息;
步骤3、Web应用的客户端插件利用获得的插件共享session信息向Web应用服务器自动提交认证;
步骤4、若用户还需要在其他浏览器上打开与步骤1相同的Web应用,返回步骤2,若用户任意浏览器上退出已经打开的Web应用,进入步骤5;
步骤5、Web应用通过插件服务器提供的Web API请求插件服务器清理当前应用相对应的插件共享session信息,插件服务器在接收到该请求后清理当前应用相对应的插件共享session信息,并通知所有浏览器该插件共享session信息失效。
优选地,步骤1及步骤2中,所述Web应用被打开后,Web应用持续向所述插件服务器发送心跳包。
优选地,步骤5中,所述插件服务器通过消息摘要接口向所述Web应用通知插件共享session信息失效。
优选地,所述Web应用通过客户端插件提供的Web API在打开或关闭浏览器session共享功能,若打开浏览器session共享功能,则所述Web应用可获得所述插件共享session信息,若关闭浏览器session共享功能,则所述Web应用无法获得所述插件共享session信息。
本发明旨在确保信息安全的前提下,提升用户操作的便利性,同时为Web应用跨浏览器提供一体化解决方案。Web应用服务可基于此为用户提供更多便利。
附图说明
图1为本发明的总体架构图;
图2为Web应用首次启动的流程图;
图3为Web应用获得共享session信息的流程图;
图4为退出应用时多浏览器同步退出的流程图;
图5为打开或关闭浏览器session共享功能的流程图。
具体实施方式
下面结合具体实施例,进一步阐述本发明。应理解,这些实施例仅用于说明本发明而不用于限制本发明的范围。此外应理解,在阅读了本发明讲授的内容之后,本领域技术人员可以对本发明作各种改动或修改,这些等价形式同样落于本申请所附权利要求书所限定的范围。
本发明的整体设计架构如图1所示,包括插件服务器及session存储字典模块。插件服务器集成本地Web服务器上,用于提供API服务,并与浏览器实现交互。session存储字典模块用于存储插件共享session信息。
用户通过浏览器一第一次访问某个Web应用时,由于当前session存储字典模块内没有与当前Web应用相对应的插件共享session信息,因此需要浏览器一向插件服务器提交登录认证后的插件共享session信息,用于其他浏览器(或当前浏览器的其他进程)访问该Web应用时的身份标识。
如图2所示,用户通过浏览器一第一次访问某个Web应用时(客户端插件启动后),由于此时客户端插件未有任何当前Web应用的插件共享session信息,无法自动提交认证。此时需要用户手动登录认证,认证成功后,Web应用将认证成功后的session信息通过插件服务器提供的Web API提交给插件服务器,插件服务器在进程内持有并将当前Web应用对应的插件共享session信息保存至session存储字典模块中。
保持后,在不同浏览器上的同一Web应用就可以共享该插件共享session信息。如图3所示,用户开启其他浏览器(或当前浏览器的其它进程)打开Web应用时,Web应用可以通过Web API获取与当前应用相对应的插件共享session信息,并继续后续流程,避免了用户再次登录认证操作。
在上述步骤中,用户访问某个Web应用时,Web应用持续向插件服务器发送心跳包。
如图4所示,当用户在任一浏览器执行退出操作退出Web应用时,Web应用向Web服务器请求注销session,注销成功后,再利用插件服务器提供的Web API向插件服务器提交清除插件共享session信息的请求。插件服务器在接收到该请求后清理该插件共享session信息,并通知所有浏览器该插件共享session信息失效。插件服务器通过消息摘要接口向Web应用通知该插件共享session信息已清理。
如图5所示,Web应用可通过客户端插件提供的Web API在特定情况下打开或关闭浏览器session共享功能,为用户的特定需求提供便利。

Claims (4)

1.一种基于插件实现多浏览器session共享方法,其特征在于,包括以下步骤:
步骤1、用户第一次在浏览器一上打开Web应用时,用户手动输入登录认证信息后,向Web应用服务器手动提交认证,认证成功后,Web应用将认证成功后的session信息通过插件服务器提供的Web API提交给插件服务器,插件服务器持有并保存与当前Web应用相对应的插件共享session信息;
步骤2、用户在浏览器二上打开与步骤1相同的Web应用,浏览器二与浏览器一为同一浏览器或为不同浏览器,Web应用的客户端插件通过插件服务器提供的Web API从插件服务器获取步骤1中已保存的与当前Web应用相对应的插件共享session信息;
步骤3、Web应用的客户端插件利用获得的插件共享session信息向Web应用服务器自动提交认证;
步骤4、若用户还需要在其他浏览器上打开与步骤1相同的Web应用,返回步骤2,若用户任意浏览器上退出已经打开的Web应用,进入步骤5;
步骤5、Web应用通过插件服务器提供的Web API请求插件服务器清理当前应用相对应的插件共享session信息,插件服务器在接收到该请求后清理当前应用相对应的插件共享session信息,并通知所有浏览器该插件共享session信息失效。
2.如权利要求1所述的一种基于插件实现多浏览器session共享方法,其特征在于,步骤1及步骤2中,所述Web应用被打开后,Web应用持续向所述插件服务器发送心跳包。
3.如权利要求1所述的一种基于插件实现多浏览器session共享方法,其特征在于,步骤5中,所述插件服务器通过消息摘要接口向所述Web应用通知插件共享session信息失效。
4.如权利要求1所述的一种基于插件实现多浏览器session共享方法,其特征在于,所述Web应用通过客户端插件提供的Web API在打开或关闭浏览器session共享功能,若打开浏览器session共享功能,则所述Web应用可获得所述插件共享session信息,若关闭浏览器session共享功能,则所述Web应用无法获得所述插件共享session信息。
CN201910460165.XA 2019-05-30 2019-05-30 基于插件实现多浏览器session共享方法 Active CN110300154B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910460165.XA CN110300154B (zh) 2019-05-30 2019-05-30 基于插件实现多浏览器session共享方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910460165.XA CN110300154B (zh) 2019-05-30 2019-05-30 基于插件实现多浏览器session共享方法

Publications (2)

Publication Number Publication Date
CN110300154A CN110300154A (zh) 2019-10-01
CN110300154B true CN110300154B (zh) 2020-06-09

Family

ID=68027451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910460165.XA Active CN110300154B (zh) 2019-05-30 2019-05-30 基于插件实现多浏览器session共享方法

Country Status (1)

Country Link
CN (1) CN110300154B (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605031A (zh) * 2008-06-13 2009-12-16 新奥特(北京)视频技术有限公司 一种面向电视台应用的跨域单点登陆系统
CN103095729A (zh) * 2013-02-21 2013-05-08 南京邮电大学 基于SIP协议的Web内容切换系统及其切换方法
US9436762B1 (en) * 2012-01-03 2016-09-06 Google Inc. Sharing a plug-in instance in a web client
CN109688114A (zh) * 2018-12-10 2019-04-26 迈普通信技术股份有限公司 单点登录方法、认证服务器及应用服务器

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605030B (zh) * 2008-06-13 2012-09-05 新奥特(北京)视频技术有限公司 一种面向电视台应用的基于Active Directory的统一认证实现方法
US20100250755A1 (en) * 2009-03-31 2010-09-30 Morris Robert P Methods, Systems, And Computer Program Products For Establishing A Shared Browsing Session Between A User Of A Web Browser With A User Of Another Web Browser
CN102065141B (zh) * 2010-12-27 2014-05-07 广州欢网科技有限责任公司 一种跨应用与浏览器实现单点登录的方法及系统
CN105119973B (zh) * 2012-11-05 2019-03-08 北京奇虎科技有限公司 用户信息处理方法和服务器
CN103414745A (zh) * 2013-07-05 2013-11-27 惠州Tcl移动通信有限公司 一种移动终端跨浏览器登陆的方法和装置
CN103955477A (zh) * 2014-03-31 2014-07-30 北京奇虎科技有限公司 在浏览器中写读Cookie信息的方法、装置和浏览器
CN106105090B (zh) * 2014-04-14 2019-10-22 迈克菲股份有限公司 利用会话共享自动登录和登出会话
CN104301316A (zh) * 2014-10-13 2015-01-21 中国电子科技集团公司第二十八研究所 一种单点登录系统及其实现方法
CN106713391B (zh) * 2015-11-13 2019-12-27 北京新媒传信科技有限公司 一种session信息的共享方法和共享系统
US20170323361A1 (en) * 2016-05-06 2017-11-09 Oct8ne Inc. Rapid re-hosting of collaborative browsing sessions
CN108111486B (zh) * 2017-12-05 2021-06-08 北京天融信网络安全技术有限公司 一种免重复登录的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605031A (zh) * 2008-06-13 2009-12-16 新奥特(北京)视频技术有限公司 一种面向电视台应用的跨域单点登陆系统
US9436762B1 (en) * 2012-01-03 2016-09-06 Google Inc. Sharing a plug-in instance in a web client
CN103095729A (zh) * 2013-02-21 2013-05-08 南京邮电大学 基于SIP协议的Web内容切换系统及其切换方法
CN109688114A (zh) * 2018-12-10 2019-04-26 迈普通信技术股份有限公司 单点登录方法、认证服务器及应用服务器

Also Published As

Publication number Publication date
CN110300154A (zh) 2019-10-01

Similar Documents

Publication Publication Date Title
CN109639740B (zh) 一种基于设备id的登录态共享方法及装置
US10069827B2 (en) Extending authentication and authorization capabilities of an application without code changes
US10146922B2 (en) Access control of software applications based on biometric identifiers
US10019561B1 (en) Systems and methods for continuous biometric authentication
US9736154B2 (en) System and method for integrating an authentication service within a network architecture
US7992203B2 (en) Methods and systems for secure shared smartcard access
US9805185B2 (en) Disposition engine for single sign on (SSO) requests
US20140337953A1 (en) Cross-platform authentication from within a rich client
US8453222B1 (en) Possession of synchronized data as authentication factor in online services
US11563740B2 (en) Methods and systems for blocking malware attacks
US9191382B1 (en) User authentication using swappable user authentication services
US20030126441A1 (en) Method and system for single authentication for a plurality of services
CN105610938A (zh) 登录状态同步方法和系统
US11184355B2 (en) Preventing unauthorized access to secured information systems using authentication tokens and multi-device authentication prompts
US9747434B1 (en) Authenticating with an external device by providing a message having message fields arranged in a particular message field order
US20130275282A1 (en) Anonymous billing
CN105991518B (zh) 网络接入认证方法及装置
US11809529B2 (en) Systems and methods for improved authentication
Singh et al. A secure multi-tier authentication scheme in cloud computing environment
US9088559B2 (en) System and method for sharing login status between an application platform and an application
US20160212123A1 (en) System and method for providing a certificate by way of a browser extension
US11706219B1 (en) Secure session sharing between computing devices
US11496470B2 (en) Methods for randomized multi-factor authentication with biometrics and devices thereof
CN110300154B (zh) 基于插件实现多浏览器session共享方法
CN112202813A (zh) 网络访问方法及装置

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20191001

Assignee: Shanghai paila Software Technology Co.,Ltd.

Assignor: Shanghai Para Software Co.,Ltd.

Contract record no.: X2023310000133

Denomination of invention: Implementation of multi browser session sharing method based on plugins

Granted publication date: 20200609

License type: Common License

Record date: 20230705