Movatterモバイル変換


[0]ホーム

URL:


CN101039317A - Method for realizing browse service COOKIE of wireless application protocol gateway - Google Patents

Method for realizing browse service COOKIE of wireless application protocol gateway
Download PDF

Info

Publication number
CN101039317A
CN101039317ACN 200610065778CN200610065778ACN101039317ACN 101039317 ACN101039317 ACN 101039317ACN 200610065778CN200610065778CN 200610065778CN 200610065778 ACN200610065778 ACN 200610065778ACN 101039317 ACN101039317 ACN 101039317A
Authority
CN
China
Prior art keywords
cookie
wap
permanent
terminal
buffer memory
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
CN 200610065778
Other languages
Chinese (zh)
Other versions
CN100579122C (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE CorpfiledCriticalZTE Corp
Priority to CN200610065778ApriorityCriticalpatent/CN100579122C/en
Publication of CN101039317ApublicationCriticalpatent/CN101039317A/en
Application grantedgrantedCritical
Publication of CN100579122CpublicationCriticalpatent/CN100579122C/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Provided is a realizing method for COOKIE of gateway browsing operation in a wireless application protocol, a WAP gateway recieves a first petition from a WAP terminal when accessing an application server, obtains all the permanent COOKIE of the terminal and stores them in buffer; when the WAP gateway recieves a continuous petition, it obtains all the conversation COOKIE from the buffer according to an unique conversation symbol, then it obtains the suited conversation COOKIE with accordance of the domain name and route of the application server as well as the suited permanent COOKIE from the buffer; the WAP gateway conforms the obtained permanent COOKIE and the conversation COOKIE, constructs a message having COOKIE information and sends them to the application server; after recieving the returned COOKIE information from the application server, the WAP gateway parses the COOKIE into an uniform data structure; the WAP gateway determines the recieved COOKIE being the conversation COOKIE or the permanent COOKIE, matches them with the same kind one in the buffer, updates the COOKIE in the buffer when matching is successful, or adds this COOKIE into the buffer.

Description

The implementation method of browse service COOKIE of wireless application protocol gateway
Technical field
The present invention mainly is suitable for the realization of COOKIE in the up browse service of WAP (WAP (wireless application protocol)) gateway distributed deployment.
Background technology
The COOKIE technology of internet is extremely simple, and vigorous vitality is but arranged.COOKIE begin to cause everybody's attention be since in February, 2000 along with the proposition of online piracy, relevant debate is still continuing so far.From another point of view, COOKIE makes browsing page easier.Nearly all main website design person has used COOKIE, because they want that for the people who browses web sites provides one better to browse environment the while also can be collected visitor's information more exactly.The more definite definition of COOKIE should be this: " COOKIE is that Web server is kept at one section text on user's hard disk.COOKIE allows Web website preservation information and fetch it subsequently again on user's computer.The segment of information stores with ' name/value ' form to (name-value pairs).”
The WAP terminal has been used the COOKIE technology for access application server more easily.General application server returns two types COOKIE, and a kind of is session COOKIE (session COOKIE), and another kind is permanent COOKIE (permanent COOKIE).Begin to finish from online for the WAP terminal, think once complete session to online.During session, if visit the URL among the COOKIE that the URL of same URL (be called for short: unified resource location) or new visit comprises preservation, then should from buffer memory, retrieve COOKIE information relevant before this session to come out, send to application server, if conversation end, the COOKIE of this all sessions does not re-use.If but the COOKIE information that application server returns is permanent COOKIE, then as long as COOKIE is not expired, the URL that the URL that whenever visits same URL or new visit comprises among the COOKIE of preservation should send to application server to the permanent COOKIE information of preserving.
At present, have only the WAP terminal of support COOKIE technology could enjoy the facility that the COOKIE technology is brought.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of implementation method of browse service COOKIE of wireless application protocol gateway, can make the WAP terminal of not supporting COOKIE also can enjoy the facility that the COOKIE technology is brought.
In order to solve the problems of the technologies described above, the invention provides a kind of implementation method of browse service COOKIE of wireless application protocol gateway, be applied to comprise the system of WAP (wireless application protocol) WAP terminal by the WAP gateway access application server, this method comprises that WAP gateway receives WAP terminal access processing of request process, may further comprise the steps:
(a) after WAP gateway is received the request first time of WAP terminal access application server, obtain all permanent COOKIE of this terminal and put into buffer memory;
When (b) WAP gateway is received subsequent request, from its buffer memory, obtain all session COOKIE of this session according to the unique sign of the session of obtaining, the session COOKIE that obtains coupling according to the application server domain name and the path of this terminal access then, and obtain the permanent COOKIE that mates in the buffer memory;
(c) WAP gateway is integrated permanent COOKIE and the session COOKIE that obtains, and the message that structure has COOKIE information sends to this application server;
This method comprises that also WAP gateway receives COOKIE information processing process, may further comprise the steps:
(h) after WAP gateway is received the COOKIE information that application server returns, resolve described COOKIE in unified data structure;
(i) this WAP gateway judges that the COOKIE that receives is session COOKIE or permanent COOKIE, again with buffer memory in the COOKIE of same type mate, upgrade the COOKIE in the buffer memory when matching, otherwise add this COOKIE in buffer memory.
Further, said method also can have following characteristics: the WAP gateway in the described system be distributed setting and a database that is connected with each WAP gateway arranged, in the described step (a), after the WAP terminal request access application server, judge that earlier whether this request is to ask for the first time after terminal is reached the standard grade, if, WAP gateway is earlier according to the WAP terminal iidentification, obtain all permanent COOKIE of this terminal correspondence in the database, and with buffer memory in existing permanent COOKIE compare, upgrade in the buffer memory existing permanent COOKIE or add new permanent COOKIE to buffer memory.
Further, said method also can have following characteristics: this WAP gateway also mates according to the domain name of the application server of WAP terminal access and the path permanent COOKIE to this terminal in the buffer memory in the described step (a), and the information of the permanent COOKIE that matches is sent to application server.
Further, said method also can have following characteristics: in the described step (i), this WAP gateway is judged the type of described COOKIE, if session COOKIE, session COOKIE in itself and this all time periods of session is mated according to the domain name and the path of described application server, if the match is successful then upgrade described COOKIE, otherwise it is preserved buffer memory into described WAP gateway; If described COOKIE is permanent COOKIE, according to the sign of described terminal and the domain name and the path of described application server, permanent COOKIE all in itself and the described WAP gateway buffer memory is mated, if the match is successful, upgrade in the buffer memory should coupling COOKIE content; Otherwise, preserve described permanent COOKIE in described buffer memory.
Further, said method also can have following characteristics: in the described step (c), whether comprise the type that outdated information is judged described COOKIE according to described COOKIE information.
Further, said method also can have following characteristics: when the WAP terminal rolls off the production line, WAP gateway obtains the unique sign of session COOKIE, deletes all session COOKIE of this terminal in the described WAP gateway buffer memory according to the unique sign of this session, discharges all session COOKIE resources.
Further, said method also can have following characteristics: when the WAP terminal rolled off the production line, WAP gateway matched all permanent COOKIE of this terminal from described WAP gateway buffer memory according to unique terminal iidentification; After filtering out expired COOKIE, described permanent COOKIE is saved in the database, simultaneously all COOKIE that mate with this terminal of deletion among the permanent COOKIE from described buffer memory.
Further, said method also can have following characteristics: when preserving all permanent COOKIE, to mate according to the permanent COOKIE that unified resource is located in title and path, terminal iidentification and the database, if the match is successful, illustrate that there has been old version in this COOKIE information, then more be somebody's turn to do the content of mating COOKIE in the new database; Otherwise it fails to match, preserves this COOKIE in database.
Further, said method also can have following characteristics: expired COOKIE will be made regular check on and delete to database.
Further, said method also can have following characteristics: in the described step (b), structure has before the information of COOKIE, filters out expired COOKIE earlier.
In sum, the inventive method is by adopting WAP gateway, making does not support the WAP terminal of COOKIE can realize the COOKIE function yet, for the WAP terminal of not supporting COOKIE provides better web page browsing environment, and the mode that adopts database to combine with buffer memory is come buffer memory session and permanent COOKIE, has remedied some defectives of hard disk preserving type.
Description of drawings
Fig. 1 is that WAP gateway is received process chart behind the WAP terminal access application server in the embodiment of the invention;
Fig. 2 is the flow chart of the COOKIE information that the preservation application server returns in the embodiment of the invention;
Fig. 3 is a flow chart of deleting session COOKIE in the embodiment of the invention when the WAP terminal rolls off the production line;
Fig. 4 is a flow chart of preserving permanent COOKIE in the embodiment of the invention when the WAP terminal rolls off the production line.
Embodiment
Below in conjunction with drawings and Examples the present invention is further described:
At present general COOKIE is kept on the local hard drive of WAP terminal, and the information that retrieval is relevant when visiting same server subsequently sends to application server.This common COOKIE storage is unaccommodated to WAP gateway.At first, for session COOKIE, there is no need to be saved on the hard disk, only need preserve relevant session COOKIE in buffer memory just can, because concerning the WAP terminal, according to the feature of business, the WAP terminal can not be in line states for a long time always, and in a single day all COOKIE of this session of rolling off the production line are without any use, so realize improving the treatment effeciency of COOKIE with buffer memory.
Secondly, in WAP gateway, in order to improve the disposal ability of WAP terminal by the WAP gateway access application server, WAP gateway is made up of the machine of many equal traffic handing capacities.Once reaching the standard grade to the request the line process from the WAP terminal like this is that a unique service processor is handled, but the different inferior requests in the line process of reaching the standard grade to can not guarantee it is that a unique processor is handled to mobile phone, all requests that are the WAP terminal are to be distributed on the different service processors to handle, and it is that different machines is handled that the COOKIE that can cause application server to return like this handles.If be saved in WAP gateway local hard drive on by general COOKIE information processing this moment is worthless, can cause the COOKIE information of mobile phone to be kept on many machines, can't accurately locate corresponding COOKIE information fast during like this to request next time of WAP terminal, so in order to reach above purpose, need be saved in information and be convenient to different service processors in the database on the public machine and handle.Therefore, the system of present embodiment comprises the some WAP terminals and the some WAP gateways that connect by the internet, database and the application server that is connected with described WAP gateway respectively, and wherein, expired permanent cookie is made regular check on and deleted to database.
The WAP terminal is by the WAP gateway access application server, and the COOKIE information that WAP gateway needs application server to return is handled, some information of visit before keeping when mobile phone is visited relevant application server once more after being convenient to.At present WAP gateway is all to preserve processing to the COOKIE information that the application server of WAP terminal access returns, and to not supporting the mobile phone of COOKIE, gateway is need carry out COOKIE to obtain operation (the COOKIE information to former preservation is filtered), and supports that to own the mobile phone gateway of COOKIE is not obtain the COOKIE information of preservation in the past.
Fig. 1 shows the handling process after WAP gateway in the embodiment of the invention is received WAP terminal access application server, may further comprise the steps:
Step 110, WAP terminal request access application server;
Step 120, WAP gateway judge that whether this request is the request first time after terminal is reached the standard grade, if, carry outstep 130, otherwise, carry outstep 150;
Step 130, WAP gateway obtains and preserves unique sign of this session, and according to WAP terminal iidentification Query Database, obtain this terminal correspondence all permanent COOKIE (the permanent COOKIE that comprises other server) and with buffer memory in permanent COOKIE relatively, upgrade in the buffer memory existing permanent COOKIE or add new permanent COOKIE in buffer memory;
Step 140, WAP gateway mates according to the domain name (being the URL title) of the application server of WAP terminal access and the path permanent COOKIE to this terminal in the buffer memory, and the information of the permanent COOKIE that matches is sent to application server, finishes;
Step 150, WAP gateway mates the session COOKIE in the buffer memory according to the domain name and the path of the application server of the unique identification of this session, visit, obtains the session COOKIE of coupling; Simultaneously, WAP gateway mates the permanent COOKIE in the buffer memory according to the domain name and the path of the application server of terminal iidentification, visit, obtains the permanent COOKIE of coupling;
Step 160, WAP gateway filter out permanent COOKIE expired among the permanent COOKIE that matches, and then session COOKIE and the permanent COOKIE that selects are integrated, and the message that structure has the information of these COOKIE sends to application server, finishes.
Session COOKIE design is the notion of 2 grades of chained lists, and permanent COOKIE is the notion of one-level chained list, but session COOKIE took out all COOKIE (storing in the chained list mode) in all these session phases before this according to the session sign when coupling, from this child list, mate then, and permanent COOKIE directly mates from chained list, and the two matching principle when finally matching the COOKIE of a certain server of visit all mates according to URL, path and end mark.
Fig. 2 shows the flow process of the COOKIE information that the preservation application server returns in the embodiment of the invention, may further comprise the steps:
Step 210, WAP gateway are resolved in the unified data structure according to the COOKIE information that application server returns, promptly in the data structure of Ding Yi COOKIE information;
Step 220 judges according to the content that is resolved to whether this COOKIE information is expired, if expired then discharge content in this data structure, finishes; Otherwise, carry outstep 230;
Whetherstep 230 comprises expires (expired) information according to the above-mentioned COOKIE information of returning, and judges the type of this COOKIE, if session COOKIE carry outstep 240, otherwise, be permanent COOKIE, carry outstep 250;
Step 240, obtain the unique sign of session, from the buffer memory of WAP gateway, take out session COOKIE in all time periods of this session according to the unique sign of session, mate the above-mentioned COOKIE that returns in domain name and path according to the application server of its visit, if the match is successful, there has been the COOKIE that is complementary with the above-mentioned COOKIE that returns in the expression buffer memory, therefore upgraded the COOKIE in the buffer memory; Otherwise, the above-mentioned COOKIE that returns is added in the buffer memory, finish;
Step 250, then from the buffer memory of WAP gateway, take out all permanent COOKIE, domain name and path, terminal iidentification and the above-mentioned COOKIE that returns according to the application server of WAP terminal access mate, if the match is successful, illustrate that there has been old version in this COOKIE information, then upgrades the content of this coupling of buffer memory COOKIE; Otherwise it fails to match, preserves the above-mentioned COOKIE that returns in buffer memory, finishes.
Fig. 3 shows the flow process of deleting session COOKIE in the embodiment of the invention when the WAP terminal rolls off the production line, and may further comprise the steps:
Step 310, when the WAP terminal rolled off the production line, WAP gateway obtained the unique sign of session COOKIE;
Step 320 according to all session COOKIE of this terminal in the unique sign deletion of the session buffer memory, discharges all session COOKIE resources.
Fig. 4 shows the flow process of preserving permanent COOKIE in the embodiment of the invention when the WAP terminal rolls off the production line, and may further comprise the steps:
Step 410, when the WAP terminal rolled off the production line, WAP gateway matched all permanent COOKIE of this terminal from buffer memory according to unique terminal iidentification;
Step 420, filter out expired COOKIE after, above-mentioned permanent COOKIE is saved in the database, simultaneously all COOKIE that mate with this terminal of deletion from the permanent COOKIE of buffer memory.
When preserving all permanent COOKIE, to mate according to the permanent COOKIE in URL title and path, terminal iidentification and the database, if the match is successful, illustrate that there has been old version in this COOKIE information, then more be somebody's turn to do the content of mating COOKIE in the new database; Otherwise it fails to match, and then explanation is new COOKIE, preserves this COOKIE in database.

Claims (10)

4, the method for claim 1, it is characterized in that, in the described step (i), this WAP gateway is judged the type of described COOKIE, if session COOKIE, session COOKIE in itself and this all time periods of session is mated according to the domain name and the path of described application server,, otherwise it is preserved buffer memory into described WAP gateway if the match is successful then upgrade described COOKIE; If described COOKIE is permanent COOKIE, according to the sign of described terminal and the domain name and the path of described application server, permanent COOKIE all in itself and the described WAP gateway buffer memory is mated, if the match is successful, upgrade in the buffer memory should coupling COOKIE content; Otherwise, preserve described permanent COOKIE in described buffer memory.
CN200610065778A2006-03-142006-03-14 Implementation method of WAP gateway browsing service COOKIEExpired - Fee RelatedCN100579122C (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN200610065778ACN100579122C (en)2006-03-142006-03-14 Implementation method of WAP gateway browsing service COOKIE

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN200610065778ACN100579122C (en)2006-03-142006-03-14 Implementation method of WAP gateway browsing service COOKIE

Publications (2)

Publication NumberPublication Date
CN101039317Atrue CN101039317A (en)2007-09-19
CN100579122C CN100579122C (en)2010-01-06

Family

ID=38889951

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN200610065778AExpired - Fee RelatedCN100579122C (en)2006-03-142006-03-14 Implementation method of WAP gateway browsing service COOKIE

Country Status (1)

CountryLink
CN (1)CN100579122C (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2010031297A1 (en)*2008-09-162010-03-25中兴通讯股份有限公司Method of wireless application protocol (wap) gateway pull service and system thereof
CN102056333A (en)*2009-11-052011-05-11中国移动通信集团河南有限公司WAP (wireless application protocol) gateway, service processing method thereof and WAP proxy server
CN102638581A (en)*2012-03-312012-08-15奇智软件(北京)有限公司Cookie information storage method and cookie information storage system
WO2013189420A3 (en)*2013-03-082014-02-13中兴通讯股份有限公司Cookie error correction method, device, and apparatus
CN103685304A (en)*2013-12-252014-03-26Tcl集团股份有限公司Method and system for sharing session information
CN104468768A (en)*2014-12-022015-03-25上海斐讯数据通信技术有限公司Method for having access to internet of mobile terminal and mobile terminal
CN104680063A (en)*2015-03-022015-06-03魅族科技(中国)有限公司Information interception method and terminal
CN105808731A (en)*2016-03-092016-07-27北京小米移动软件有限公司Data storage method and device
CN107707584A (en)*2016-08-082018-02-16腾讯科技(深圳)有限公司One kind applies loading method, terminal and Platform Server
CN108510355A (en)*2018-03-122018-09-07拉扎斯网络科技(上海)有限公司Method and related device for realizing voice interactive meal ordering
WO2019006775A1 (en)*2017-07-032019-01-10网宿科技股份有限公司Data transmission method and system thereof

Cited By (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2010031297A1 (en)*2008-09-162010-03-25中兴通讯股份有限公司Method of wireless application protocol (wap) gateway pull service and system thereof
CN102056333A (en)*2009-11-052011-05-11中国移动通信集团河南有限公司WAP (wireless application protocol) gateway, service processing method thereof and WAP proxy server
CN102638581A (en)*2012-03-312012-08-15奇智软件(北京)有限公司Cookie information storage method and cookie information storage system
CN102638581B (en)*2012-03-312015-11-25北京奇虎科技有限公司A kind of cookie information storage means and system
WO2013189420A3 (en)*2013-03-082014-02-13中兴通讯股份有限公司Cookie error correction method, device, and apparatus
CN103685304A (en)*2013-12-252014-03-26Tcl集团股份有限公司Method and system for sharing session information
CN104468768B (en)*2014-12-022018-09-28上海斐讯数据通信技术有限公司A kind of method and mobile terminal of mobile terminal accessing internet
CN104468768A (en)*2014-12-022015-03-25上海斐讯数据通信技术有限公司Method for having access to internet of mobile terminal and mobile terminal
CN104680063A (en)*2015-03-022015-06-03魅族科技(中国)有限公司Information interception method and terminal
CN104680063B (en)*2015-03-022019-03-15魅族科技(中国)有限公司A kind of information intercepting method and terminal
CN105808731A (en)*2016-03-092016-07-27北京小米移动软件有限公司Data storage method and device
CN107707584A (en)*2016-08-082018-02-16腾讯科技(深圳)有限公司One kind applies loading method, terminal and Platform Server
WO2019006775A1 (en)*2017-07-032019-01-10网宿科技股份有限公司Data transmission method and system thereof
CN108510355A (en)*2018-03-122018-09-07拉扎斯网络科技(上海)有限公司Method and related device for realizing voice interactive meal ordering

Also Published As

Publication numberPublication date
CN100579122C (en)2010-01-06

Similar Documents

PublicationPublication DateTitle
CN101039317A (en)Method for realizing browse service COOKIE of wireless application protocol gateway
US6816944B2 (en)Apparatus and methods for providing coordinated and personalized application and data management for resource-limited mobile devices
US7310687B2 (en)Methods and systems for managing class-based condensation
US7612695B2 (en)Determination of compression state information for use in interactive compression
CN101080056A (en)A management method and system of network browser collection folder of mobile terminal
US6868453B1 (en)Internet home page data acquisition method
CN1829344A (en) A parameter configuration system and a parameter configuration method for a mobile station
CN1811774A (en)Automated integration of content from multiple information stores using a mobile communication device
CN101442558B (en)Method and system for providing index service for P2SP network
US8090046B2 (en)Interactive compression with multiple units of compression state information
CN101047520A (en)Message recording merging method and user terminal
US20090240669A1 (en)Method of managing locations of information and information location management device
WO2012113262A1 (en)Download method, system, and device for mobile terminal
CN1568047A (en)A method for implementing network side and terminal side service adaptation
CN106250476B (en) A method, device and system for updating and synchronizing a whitelist
KR101172885B1 (en)Apparatus and method for providing device profile using device identifier
CN100459556C (en)Method for data sharing
CN105868234A (en)Update method and device of caching data
US20080298458A1 (en)Method and apparatus for communicating compression state information for interactive compression
CN101047611A (en)System and method for clustering RSS information
CN1949715A (en)Method for limiting browser access network address
CN1467656A (en)Information pushing method and system in instant messaging tool
US20130097383A1 (en)Methods for providing a response and systems thereof
US8073975B2 (en)Synchronization of side information caches
CN1937503A (en)System and method for speeding up webpage content downloading

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20100106

Termination date:20150314

EXPYTermination of patent right or utility model

[8]ページ先頭

©2009-2025 Movatter.jp