CN108762762A - Session information management method, device, equipment and computer storage media - Google Patents

Session information management method, device, equipment and computer storage media Download PDF

Info

Publication number
CN108762762A
CN108762762A CN201810432115.6A CN201810432115A CN108762762A CN 108762762 A CN108762762 A CN 108762762A CN 201810432115 A CN201810432115 A CN 201810432115A CN 108762762 A CN108762762 A CN 108762762A
Authority
CN
China
Prior art keywords
session information
version number
php
coded formats
called side
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
CN201810432115.6A
Other languages
Chinese (zh)
Other versions
CN108762762B (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.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Fenqile Network Technology 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 Shenzhen Fenqile Network Technology Co Ltd filed Critical Shenzhen Fenqile Network Technology Co Ltd
Priority to CN201810432115.6A priority Critical patent/CN108762762B/en
Publication of CN108762762A publication Critical patent/CN108762762A/en
Application granted granted Critical
Publication of CN108762762B publication Critical patent/CN108762762B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding

Abstract

The invention discloses a kind of session information management method, device, equipment and computer storage media, which includes:The session information call instruction for supporting that the first called side of JSON parsings is sent is received, the session information of the PHP coded formats of storage is converted into the session information of JSON coded formats, and distribute first version number;The session information and first version number of JSON coded formats are sent to the first called side;Receive the more new command of the session information including the second edition number for supporting that the second called side of JSON parsings is sent;If the second edition number is consistent with first version number, the data for the JSON coded formats that the second called side is sent are converted to the session information of PHP coded formats;Using the session information for the PHP coded formats that the session information of the PHP coded formats of conversion updates storage, and it is third version number to update first version number.The present invention can reduce development cost, improve development efficiency.

Description

Session information management method, device, equipment and computer storage media
Technical field
The present embodiments relate to computer technology more particularly to a kind of session information management method, device, equipment and meters Calculation machine storage medium.
Background technology
Period is newly established in cyberprise, the website service of many enterprises mostly uses HyperText Preprocessor (Hypertext Preprocessor, PHP) technology builds, and the session information of user carries out code storage using the function built in PHP.But with It the explosive of business event scale to increase, the website built based on PHP technologies cannot be satisfied demand, need website service Gradually move to the higher java platforms of performance.
But when each business side migrates interface from PHP to java, if necessary to read and write session information, it is necessary to each Business side is decoded and encodes to session information.Session information is that user logs in the most important information of state, data integrity It is most important, but encoding and decoding are carried out to session information by each business side oneself, each business side's stand-alone development relevant interface is needed, is opened Send out of high cost, efficiency it is low.In addition, session information is when concurrently reading or changing, it is also possible to capped situation occur, may lead Session information is caused to lose.
Invention content
The present invention provides a kind of session information management method, device, equipment and computer storage media, for from PHP It is applied in the service migrated to Java, reduces development cost, improve development efficiency.
In a first aspect, the embodiment of the present invention provides a kind of session information management method, including:
Session information call instruction is received, session information call instruction be support JavaScript object label to parse the What one called side was sent;
The session information of the PHP coded formats of storage is converted to the session letter of JavaScript object label coding format Breath, and distribute first version number for session information;
The session information and first version number of JavaScript object label coding format are sent to the first called side;
Receive the session information more new command for supporting that the second called side of JavaScript object label parsing is sent, session Information update instruction includes the second edition number;
Check whether the second edition number is consistent with first version number;
If the second edition number is consistent with first version number, the JavaScript object that the second called side is sent, which marks, to be compiled The data of code format are converted to the session information of PHP coded formats;
Using the session information for the PHP coded formats that the session information of the PHP coded formats of conversion updates storage, and update First version number is third version number.
In a kind of possible realization method of first aspect, check the second edition number and first version number it is whether consistent it Afterwards, method further includes:
If the second edition number is inconsistent with first version number, the session information of the PHP coded formats of storage is converted to The session information of JavaScript object label coding format, and distribute first version number for session information;
The session information and first version number of JavaScript object label coding format are sent to the second called side.
In a kind of possible realization method of first aspect, deposited using the session information update of the PHP coded formats of conversion The session information of the PHP coded formats of storage, and first version number is updated for after third version number, method further includes:
Store the more new record of the session information of PHP coded formats.
In a kind of possible realization method of first aspect, update first version number is third version number, including:
By first version number plus 1, third version number is obtained.
Second aspect, the embodiment of the present invention provide a kind of session information managing device, including:
Command reception module, for receiving session information call instruction, session information call instruction is to support What the first called side of JavaScript object label parsing was sent;
Coding/decoding module, for the session information of the PHP coded formats of storage to be converted to JavaScript object label The session information of coded format, and distribute first version number for session information;
Information sending module, the session information for sending JavaScript object label coding format to the first called side With first version number;
Command reception module is additionally operable to receive the meeting for supporting that the second called side of JavaScript object label parsing is sent Information update instruction is talked about, session information more new command includes the second edition number;
Version checking module, for checking whether the second edition number is consistent with first version number;
Coding/decoding module, if being additionally operable to, the second edition number is consistent with first version number, by the transmission of the second called side The data of JavaScript object label coding format are converted to the session information of PHP coded formats;
Information updating module, the PHP coded formats that the session information for the PHP coded formats using conversion updates storage Session information, and update first version number be third version number.
In a kind of possible realization method of second aspect, coding/decoding module, if being additionally operable to the second edition number and the first edition This number inconsistent, then the session information of the PHP coded formats of storage is converted to JavaScript object label coding format Session information, and distribute first version number for session information;
Information sending module is additionally operable to send the session letter of JavaScript object label coding format to the second called side Breath and first version number.
In a kind of possible realization method of second aspect, session information managing device further includes:
Logging modle, the more new record of the session information for storing PHP coded formats.
In a kind of possible realization method of second aspect, information updating module is specifically used for first version number plus 1, Obtain third version number.
The third aspect, the embodiment of the present invention provide a kind of session information management equipment, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more programs are executed by one or more processors so that one or more processors realize such as first The session information management method of any realization method of aspect.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, The session information management method such as any realization method of first aspect is realized when the program is executed by processor.
Session information management method, device, equipment and computer storage media provided in an embodiment of the present invention, pass through reception The session information call instruction for supporting the first called side of JSON parsings to send, by the session information of the PHP coded formats of storage The session information of JSON coded formats is converted to, and first version number is distributed for session information, JSON is sent to the first called side The session information of coded format and first version number realize the called side supported JSON parsings but do not support PHP code parsings The session information of PHP codings is called;In addition, receive the second called side transmission for supporting JSON parsings includes the second edition number Session information more new command, if the second edition number and first version number are consistent, the JSON that the second called side is sent is encoded The data of format are converted to the session information of PHP coded formats;It is updated storage using the session information of the PHP coded formats of conversion PHP coded formats session information, and update first version number be third version number, realize support JSON parsing but do not prop up The called side for holding PHP code parsings changes the session information that PHP is encoded, therefore, session information provided in an embodiment of the present invention Amending method is applied in the service migrated from PHP to Java, is no longer needed to the stand-alone development for carrying out relevant interface, is reduced out Cost is sent out, development efficiency is improved, in addition, due to the version number increased for session information, is concurrently read in session information When taking or changing, avoids session information caused by session information is capped and lose.
Description of the drawings
Fig. 1 is the flow chart of session information management method embodiment one provided in an embodiment of the present invention;
Fig. 2 is the flow chart of session information management method embodiment two provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of session information managing device embodiment one provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of session information management equipment provided in an embodiment of the present invention.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Enterprise provide to the user network service when, after each user logs in and is successfully established session, be required for preserve and The corresponding session information of the user, to provide different services to the user according to the dialog information of user.But due to enterprise Scale is all gradually to develop from small to large, especially the enterprise of establishment type, all relatively limited in incipient stage manpower, financial resources, because This, network service is mostly built using PHP technologies by newly established enterprise.The web services technologies difficulty built based on PHP technologies is relatively low, Development time is shorter, disclosure satisfy that the exploitation demand of establishment type enterprise.
But with the expansion of scope of the enterprise, fulminant growth will also occur in the scale of business, be built based on PHP technologies Network service can no longer meet demand.It is therefore desirable to by it is original based on the network services migrating of PHP technologies to performance more High Java platform, but each business side inevitably needs to read to be based on PHP when interface is moved to Java from PHP The session information of coding.Due to there is no built-in function that can parse PHP codings in Java, it is necessary to which each business side oneself writes Interface routine for carrying out encoding and decoding between PHP codings and Java codings, increases the development of each business side in this way Amount and difficulty.Importantly, current extensive business needs to support concurrently to access, session information is concurrently reading or is changing When, it is also possible to there is capped situation, session information may be caused to lose.The loss of session information will lead to not for Family provides correctly service, seriously affects user experience.
A kind of session information management method of offer of the embodiment of the present invention, device, equipment and computer storage media, for solving The certainly above problem.
Fig. 1 is the flow chart of session information management method embodiment one provided in an embodiment of the present invention, as shown in Figure 1, this Embodiment provide method include:
Step S101, receives session information call instruction, and session information call instruction is to support JavaScript object mark What the first called side of note parsing was sent.
Session information management method provided in an embodiment of the present invention is used to be the network service based on PHP coded formats and base It is carried between the network service that JavaScript object marks (JavaScript Object Notation, JSON) coded format For code conversion so that the session information based on PHP codings can be serviced correct access and modification by the network based on JSON, separately Outside, by increasing version number for session information, ensure the integrality of session information.
Session information management method provided in an embodiment of the present invention is applied in the network service based on PHP technological development. First, after the session information call instruction for receiving the transmission of the first called side, judge whether the first called side is to support JSON The called side of parsing.Since the network service that the application is applied is based on PHP technological development, the session information of preservation PHP codings are also based on, if the first called side is the called side supported JSON parsings but do not support PHP code parsings, the As soon as called side can not directly parse the session information encoded based on PHP, required session information can not be also directly invoked.
The session information of the PHP coded formats of storage is converted to JavaScript object label coding lattice by step S102 The session information of formula, and distribute first version number for session information.
Due in step S101, judging that the first called side can not directly invoke required session information, therefore, in this step In, it needs first to inquire the session information that the first called side needs call in the session information of storage, the meeting inquired certainly Words information is the session information of PHP coded formats.Then the session information of the PHP coded formats of storage is converted into JSON codings The session information of format.The session information of transformed JSON coded formats can be directly invoked by the first called side.In addition, Due to current session information be all according only to user information correspond to store, there are multiple called sides simultaneously call a session When information, i.e., concurrent invocation the case where when, if a called side is modified session information, and other called sides still use The session information before modification is called, then the capped situation of the session information changed will likely occur, influences session information Accuracy.
Therefore, in the present embodiment, in the meeting that the session information of the PHP coded formats of storage is converted to JSON coded formats After talking about information, first version number also is distributed for the session information, first version number is used to carry out for the session information of this calling Version identifier.The format of first version number is not limited in the present embodiment, and any coding may be used or sequence is realized.
Step S103 sends the session information and the first edition of JavaScript object label coding format to the first called side This number.
After the code conversion for completing session information and version number's addition, you can send JSON codings to the first called side The session information and first version number of format.First called side can be carried out according to the session information of the JSON coded formats of calling Respective handling.
Step S104 receives the session information update for supporting that the second called side of JavaScript object label parsing is sent Instruction, session information more new command includes the second edition number.
In web services, session information can also be changed in addition to being called, receive the transmission of the second called side After session information more new command, determines and need to modify to corresponding session information.Wherein, the second called side is similarly support JSON is parsed but is not supported the called side of PHP code parsings, then the second called side can not also believe the session of PHP coded formats Breath is directly changed.The session information more new command that second called side is sent includes the second edition number, is needed for indicating The version information of the session information of modification.Second called side can be same called side with the first called side, certainly, be taken in network It is engaged in the application scenarios of large-scale concurrent, the second called side can also be different from the first called side.
Step S105 checks whether the second edition number is consistent with first version number.
After receiving session information more new command, need first to check the second edition number and the PHP coded formats of storage Whether the first version number of session information is consistent.Since session information may be by concurrent invocation and modification, if the first called side tune After session information, need to change the session information, but be first modified the session information by the second called side, then After first called side changes the session information again, the second called side will lose the modification of session information.In addition, session information Read operation can the session information that currently reads of asynchronous write-back equally will appear in the case where concurrently reading session information The capped situation of session information, may cause the loss of session information.
Therefore, in the present embodiment, when the second called side needs to change session information, need to check the second called side hair Send session updates instruction in the second edition number with store PHP coded formats session information first version number whether one It causes.If consistent, illustrate that the session information that the second called side to be changed is not changed by other called sides, the second called side can Directly to modify to it.If inconsistent, illustrate that the session information that the second called side to be changed is called by other Fang Xiugai, the second called side cannot directly modify to it.
Step S106, if the second edition number is consistent with first version number, the JavaScript that the second called side is sent The data of object tag coded format are converted to the session information of PHP coded formats.
If the first version number of the second edition number and the session information of the PHP coded formats of storage in session updates instruction Unanimously, then the data for the JSON coded formats that the second called side is sent can be converted to directly to the session of PHP coded formats Information.
The session of step S107, the PHP coded formats updated storage using the session information of the PHP coded formats of conversion are believed Breath, and it is third version number to update first version number.
It can be believed at this time using the session for the PHP coded formats that the session information of the PHP coded formats of conversion updates storage Breath completes the update to session information.It is identical as existing update method to the specific update method of session information, herein no longer It repeats.After completing the update of session information, it is also necessary to be updated the version number of updated session information, by first Version number is updated to third version number.The purpose of more new version number is in order to make other needs be updated the session information Called side judges whether directly to update session information according to the version number.Such as it is updated to by first version number After third version number, instructed if there is called side to send the session updates comprising the second edition number again, then due to the second edition number Version number is different from third, cannot directly be updated to the session information.
The specific method that first version number is updated to third version number for example can be to obtain first version number plus 1 Third version number.That is, the version number of session information is a Serial No. successively increased, more new capital is by its version number every time Add 1.
It should be noted that in the present embodiment, supports JSON parsings but do not support that the called side of PHP code parsings can be with Using any language development, as long as it supports JSON analytic languages, such as Java called sides, C++ called sides, python to call Side and other support the called side of general JSON parsing.Using session information update method provided in this embodiment, Ren Hezhi Hold JSON analytic languages called side can with the session information of direct read/write PHP coded formats, can be effectively reduced exploitation at This, improves development efficiency.
Session information update method provided in an embodiment of the present invention supports the first called side of JSON parsings to send out by reception The session information call instruction sent, the session that the session information of the PHP coded formats of storage is converted to JSON coded formats are believed Breath, and first version number is distributed for session information, the session information and the first edition of JSON coded formats are sent to the first called side It this number, realizes and supports JSON parsings but the called side of PHP code parsings is not supported to call the session information that PHP is encoded;Separately Outside, the more new command of the session information including the second edition number for supporting that the second called side of JSON parsings is sent is received, if second Version number is consistent with first version number, then the data for the JSON coded formats that the second called side is sent are converted to PHP encodes lattice The session information of formula;Using the session information for the PHP coded formats that the session information of the PHP coded formats of conversion updates storage, And it is third version number to update first version number, realizes the called side pair supported JSON parsings but do not support PHP code parsings The session information modification of PHP codings, therefore, session information amending method provided in an embodiment of the present invention is moved from PHP to Java It is applied in the service of shifting, no longer needs to the stand-alone development for carrying out relevant interface, reduce development cost, improve development efficiency, separately Outside, session information is avoided when session information concurrently read or change due to the version number increased for session information Session information is lost caused by capped.
Fig. 2 is the flow chart of session information management method embodiment two provided in an embodiment of the present invention, as shown in Fig. 2, this Embodiment provide method include:
Step S201, receives session information call instruction, and session information call instruction is to support JavaScript object mark What the first called side of note parsing was sent.
The session information of the PHP coded formats of storage is converted to JavaScript object label coding lattice by step S202 The session information of formula, and distribute first version number for session information.
Step S203 sends the session information and the first edition of JavaScript object label coding format to the first called side This number.
Step S204 receives the session information update for supporting that the second called side of JavaScript object label parsing is sent Instruction, session information more new command includes the second edition number.
Step S205 checks whether the second edition number is consistent with first version number.
Step S206, if the second edition number is consistent with first version number, the JavaScript that the second called side is sent The data of object tag coded format are converted to the session information of PHP coded formats.
The session of step S207, the PHP coded formats updated storage using the session information of the PHP coded formats of conversion are believed Breath, and it is third version number to update first version number.
Step S101- steps S107 is identical more than step S201- steps S207, and details are not described herein again.
Step S208 believes the session of the PHP coded formats of storage if the second edition number is inconsistent with first version number Breath is converted to the session information of JavaScript object label coding format, and distributes first version number for session information.
If in step S205, find that the second edition number and first version number are inconsistent by inspection, it means that the Two called sides need newer session information to have occurred that variation, it is impossible to the JSON that the second called side is sent directly be used to compile The session information of the PHP coded formats of the data update storage of code format.If update may lead to the session information quilt of storage Covering, relevant information are lost.So at this time, it may be necessary to which the session information of the PHP coded formats of storage, which is converted to JSON, encodes lattice The session information of formula, and distribute first version number for the session information.
Step S209 sends the session information and the first edition of JavaScript object label coding format to the second called side This number.
After the code conversion for completing session information and version number's addition, you can send JSON codings to the second called side The session information and first version number of format.Second called side is in the session information and the first edition for having received the JSON coded formats After this number, you can modification needed for being carried out on the basis of the session information.After the completion of modification, the second called side sends session again Information update instructs, at this time since session information more new command includes first version number.Since session information update at this time refers to Version number in order is consistent with the version number of session information of PHP coded formats of storage, then can be by the second called side The data of the JSON coded formats of transmission are converted to the session information of PHP coded formats, complete the update to session information.Certainly After completing the update to session information at this time, it is also necessary to update the version number of session information again.
Session information update method provided in an embodiment of the present invention supports the first called side of JSON parsings to send out by reception The session information call instruction sent, the session that the session information of the PHP coded formats of storage is converted to JSON coded formats are believed Breath, and first version number is distributed for session information, the session information and the first edition of JSON coded formats are sent to the first called side It this number, realizes and supports JSON parsings but the called side of PHP code parsings is not supported to call the session information that PHP is encoded;Separately Outside, the more new command of the session information including the second edition number for supporting that the second called side of JSON parsings is sent is received, if second Version number is consistent with first version number, then the data for the JSON coded formats that the second called side is sent are converted to PHP encodes lattice The session information of formula;Using the session information for the PHP coded formats that the session information of the PHP coded formats of conversion updates storage, And it is third version number to update first version number;If the second edition number is inconsistent with first version number, the PHP of storage is encoded The session information of format is converted to the session information of JSON coded formats, and distributes first version number for session information, to second Called side sends the session information and first version number of JSON coded formats, realizes and supports JSON parsings but do not support PHP to compile The called side of code parsing changes the session information that PHP is encoded, therefore, session information modification side provided in an embodiment of the present invention Method is applied in the service migrated from PHP to Java, is no longer needed to the stand-alone development for carrying out relevant interface, is reduced development cost, Development efficiency is improved, in addition, due to the version number increased for session information, in session information concurrently read or change When, it avoids session information caused by session information is capped and loses.
Further, in Fig. 1 or embodiment illustrated in fig. 2, step S107 or step S207 are encoded using the PHP of conversion The session information for the PHP coded formats that the session information of format updates storage, and update first version number be third version number it Afterwards, further include:Store the more new record of the session information of PHP coded formats.That is to every time for PHP coded formats The update of session information, all preserves its more new record, is convenient for update of the tracking for session information in this way, is provided for positioning problems Most perfect information.
Fig. 3 is the structural schematic diagram of session information managing device embodiment one provided in an embodiment of the present invention, such as Fig. 3 institutes Show, session management device provided in this embodiment includes:
Command reception module 31, for receiving session information call instruction, session information call instruction is to support What the first called side of JavaScript object label parsing was sent.
Coding/decoding module 32, for the session information of the PHP coded formats of storage to be converted to JavaScript object mark Remember the session information of coded format, and first version number is distributed for session information.
Information sending module 33, the session letter for sending JavaScript object label coding format to the first called side Breath and first version number.
Command reception module 31 is additionally operable to receive and supports what the second called side of JavaScript object label parsing was sent Session information more new command, session information more new command includes the second edition number.
Version checking module 34, for checking whether the second edition number is consistent with first version number.
Coding/decoding module 32, if being additionally operable to, the second edition number is consistent with first version number, by the transmission of the second called side The data of JavaScript object label coding format are converted to the session information of PHP coded formats.
Information updating module 35, the PHP that the session information for the PHP coded formats using conversion updates storage encode lattice The session information of formula, and it is third version number to update first version number.
Session information managing device provided in this embodiment is for realizing session information management method shown in FIG. 1, in fact Existing principle is similar with technique effect, and details are not described herein again.
Further, on the basis of embodiment shown in Fig. 3, coding/decoding module 32, if being additionally operable to the second edition number and the One version number is inconsistent, then the session information of the PHP coded formats of storage is converted to JavaScript object label coding lattice The session information of formula, and distribute first version number for session information;Information sending module 33 is additionally operable to send to the second called side The session information of JavaScript object label coding format and first version number.
Further, on the basis of embodiment shown in Fig. 3, session information managing device further includes:Logging modle is used for Store the more new record of the session information of PHP coded formats.
Further, on the basis of embodiment shown in Fig. 3, information updating module 35 is specifically used for first version number Add 1, obtains third version number.
Fig. 4 is a kind of structural schematic diagram of session information management equipment provided in an embodiment of the present invention, as shown in figure 4, should Session information management equipment includes processor 41, memory 42, reception device 43 and sending device 44;Session information management equipment The quantity of middle processor 41 can be one or more, in Fig. 4 by taking a processor 41 as an example;In session information management equipment Processor 41, memory 42, reception device 43 can be connected with sending device 44 by bus or other modes, with logical in Fig. 4 It crosses for bus connection.
Memory 42 is used as a kind of computer readable storage medium, can be used for storing software program, computer can perform journey Sequence and module, such as the corresponding program instruction of session information management method/module (example in the application Fig. 1 to Fig. 2 embodiments Such as, the coding/decoding module 32 in session information managing device, version checking module 34, information updating module 35).Processor 41 is logical Software program, instruction and module that operation is stored in memory 42 are crossed, to the various functions of session information management equipment Using and data processing, that is, realize above-mentioned session information management method.
Memory 42 can include mainly storing program area and storage data field, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data field can be stored to be created according to using for session information management equipment The data etc. built.In addition, memory 42 may include high-speed random access memory, can also include nonvolatile memory, A for example, at least disk memory, flush memory device or other non-volatile solid state memory parts.
Reception device 43 can be the device or module for receiving information, such as the instruction in session information managing device Receiving module 31.Sending device 44 can be the device or module for sending information, such as in session information managing device Information sending module 33.
The embodiment of the present application also provides a kind of storage medium including computer executable instructions, computer executable instructions When being executed by computer processor for executing a kind of session information management method, this method includes:
Session information call instruction is received, session information call instruction be support JavaScript object label to parse the What one called side was sent;
The session information of the PHP coded formats of storage is converted to the session letter of JavaScript object label coding format Breath, and distribute first version number for session information;
The session information and first version number of JavaScript object label coding format are sent to the first called side;
Receive the session information more new command for supporting that the second called side of JavaScript object label parsing is sent, session Information update instruction includes the second edition number;
Check whether the second edition number is consistent with first version number;
If the second edition number is consistent with first version number, the JavaScript object that the second called side is sent, which marks, to be compiled The data of code format are converted to the session information of PHP coded formats;
Using the session information for the PHP coded formats that the session information of the PHP coded formats of conversion updates storage, and update First version number is third version number.
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present application is provided, computer Executable instruction is not limited to method operation as above, and the session information management that the application any embodiment is provided can also be performed Relevant operation in method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the application It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases Good embodiment.Based on this understanding, the technical solution of the application substantially in other words contributes to the prior art Part can be expressed in the form of software products, which can be stored in computer readable storage medium In, such as the floppy disk of computer, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes the method described in each embodiment of the application.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of session information management method, which is characterized in that including:
Session information call instruction is received, the session information call instruction be support JavaScript object label to parse the What one called side was sent;
The session information of the PHP coded formats of storage is converted to the session information of JavaScript object label coding format, And distribute first version number for the session information;
The session information of the JavaScript object label coding format and the first edition are sent to first called side This number;
Receive the session information more new command for supporting that the second called side of JavaScript object label parsing is sent, the session Information update instruction includes the second edition number;
Check whether the second edition number is consistent with the first version number;
If the second edition number is consistent with the first version number, JavaScript pairs that second called side is sent As the data of label coding format are converted to the session information of PHP coded formats;
Using the session information for the PHP coded formats that the session information of the PHP coded formats of conversion updates storage, and described in update First version number is third version number.
2. according to the method described in claim 1, it is characterized in that, described check the second edition number and the first version Number whether it is consistent after, the method further includes:
If the second edition number and the first version number are inconsistent, the session information of the PHP coded formats of storage is turned It is changed to the session information of JavaScript object label coding format, and first version number is distributed for the session information;
The session information of the JavaScript object label coding format and the first edition are sent to second called side This number.
3. method according to claim 1 or 2, which is characterized in that the session of the PHP coded formats using conversion is believed The session information of the PHP coded formats updated storage is ceased, and it is the side after third version number to update the first version number Method further includes:
Store the more new record of the session information of the PHP coded formats.
4. method according to claim 1 or 2, which is characterized in that the update first version number is third version Number, including:
By the first version number plus 1, the third version number is obtained.
5. a kind of session information managing device, which is characterized in that including:
Command reception module, for receiving session information call instruction, the session information call instruction is to support What the first called side of JavaScript object label parsing was sent;
Coding/decoding module, for the session information of the PHP coded formats of storage to be converted to JavaScript object label coding The session information of format, and distribute first version number for the session information;
Information sending module, the session for sending the JavaScript object label coding format to first called side Information and the first version number;
Described instruction receiving module is additionally operable to receive the meeting for supporting that the second called side of JavaScript object label parsing is sent Information update instruction is talked about, the session information more new command includes the second edition number;
Version checking module, for checking whether the second edition number is consistent with the first version number;
The coding/decoding module is adjusted if being additionally operable to the second edition number and the first version number unanimously by described second The session information of PHP coded formats is converted to the data of the JavaScript object label coding format just sent;
Information updating module, the meeting for the PHP coded formats that the session information for the PHP coded formats using conversion updates storage Information is talked about, and it is third version number to update the first version number.
6. device according to claim 5, which is characterized in that the coding/decoding module, if being additionally operable to the second edition It is number inconsistent with the first version number, then the session information of the PHP coded formats of storage is converted into JavaScript object The session information of label coding format, and distribute first version number for the session information;
Described information sending module is additionally operable to send the JavaScript object label coding format to second called side Session information and the first version number.
7. device according to claim 5 or 6, which is characterized in that further include:
Logging modle, the more new record of the session information for storing the PHP coded formats.
8. device according to claim 5 or 6, which is characterized in that described information update module is specifically used for described the One version number adds 1, obtains the third version number.
9. a kind of session information management equipment, which is characterized in that including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processors are real The now session information management method as described in any in claim 1-4.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The session information management method as described in any in claim 1-4 is realized when execution.
CN201810432115.6A 2018-05-08 2018-05-08 Session information management method, device, equipment and computer storage medium Active CN108762762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810432115.6A CN108762762B (en) 2018-05-08 2018-05-08 Session information management method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810432115.6A CN108762762B (en) 2018-05-08 2018-05-08 Session information management method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN108762762A true CN108762762A (en) 2018-11-06
CN108762762B CN108762762B (en) 2022-03-25

Family

ID=64009367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810432115.6A Active CN108762762B (en) 2018-05-08 2018-05-08 Session information management method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN108762762B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008518A (en) * 2019-12-10 2020-04-14 重庆忽米网络科技有限公司 Dynamic friction industry identification analysis data updating method and system
CN112448985A (en) * 2019-09-02 2021-03-05 阿里巴巴集团控股有限公司 Distributed system, network processing method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101968740A (en) * 2010-09-28 2011-02-09 中国工商银行股份有限公司 Service data dynamic adjustment server and system on basis of JAVA CLASS compilation
US20110225142A1 (en) * 2010-03-11 2011-09-15 Mailguard Pty Ltd Web site analysis system and method
CN103430164A (en) * 2010-12-10 2013-12-04 韦斯技术有限公司 Methods and systems for remote desktop session redrawing via HTTP headers
CN104951275A (en) * 2015-06-18 2015-09-30 湖北盛天网络技术股份有限公司 Computer instruction data processing method and system
US20160246698A1 (en) * 2015-02-21 2016-08-25 Hcl Technologies Limited Change based testing of a javascript software application
CN106598922A (en) * 2016-12-23 2017-04-26 Tcl集团股份有限公司 Character string conversion method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110225142A1 (en) * 2010-03-11 2011-09-15 Mailguard Pty Ltd Web site analysis system and method
CN101968740A (en) * 2010-09-28 2011-02-09 中国工商银行股份有限公司 Service data dynamic adjustment server and system on basis of JAVA CLASS compilation
CN103430164A (en) * 2010-12-10 2013-12-04 韦斯技术有限公司 Methods and systems for remote desktop session redrawing via HTTP headers
US20160246698A1 (en) * 2015-02-21 2016-08-25 Hcl Technologies Limited Change based testing of a javascript software application
CN104951275A (en) * 2015-06-18 2015-09-30 湖北盛天网络技术股份有限公司 Computer instruction data processing method and system
CN106598922A (en) * 2016-12-23 2017-04-26 Tcl集团股份有限公司 Character string conversion method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄华林: "《使用Selenium进行Web应用自动化测试的研究》", 《 电脑开发与应用 》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112448985A (en) * 2019-09-02 2021-03-05 阿里巴巴集团控股有限公司 Distributed system, network processing method and device and electronic equipment
CN112448985B (en) * 2019-09-02 2022-07-15 阿里巴巴集团控股有限公司 Distributed system, network processing method and device and electronic equipment
CN111008518A (en) * 2019-12-10 2020-04-14 重庆忽米网络科技有限公司 Dynamic friction industry identification analysis data updating method and system
CN111008518B (en) * 2019-12-10 2023-06-20 重庆忽米网络科技有限公司 Dynamic friction industry identification analysis data updating method and system

Also Published As

Publication number Publication date
CN108762762B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
US20060253831A1 (en) Validation architecture
CN108563768A (en) Data transfer device, device, equipment and the storage medium of different data model
CN109062572B (en) Component calling method, device, equipment and storage medium
CN112035112B (en) Application program development method, system, medium and electronic equipment
CN107404418B (en) Internet product testing method, device, equipment and storage medium
US20140033229A1 (en) Method and computation node for processing application data
CN111324619B (en) Object updating method, device, equipment and storage medium in micro-service system
JP2008165340A (en) Remote procedure calling system
CN110780860A (en) Generation method and device of table building script, computer equipment and storage medium
CN111427583A (en) Component compiling method and device, electronic equipment and computer readable storage medium
CN108762762A (en) Session information management method, device, equipment and computer storage media
WO2021175053A1 (en) Method and apparatus for executing functional module in virtual machine
CN107566090B (en) Fixed-length/variable-length text message processing method and device
CN106843934A (en) The treating method and apparatus of upgrade file
CN115525282A (en) Method for realizing cross-platform desktop application program and related equipment thereof
US20210232378A1 (en) Program calling, electronic device, and storage medium
US20190361684A1 (en) Systems and methods for providing an application transformation tool
US10929121B2 (en) Method, device and related system for dynamically repairing application
CN103902261A (en) Method and device for processing software resource
KR20180131009A (en) System and method for converting large scale application
CN112328257A (en) Code conversion method and device
KR100762712B1 (en) Method for transforming of electronic document based on mapping rule and system thereof
US20180136989A1 (en) System integration using configurable dataflow
CN104267935A (en) Code conversion method and device
CN106843895B (en) Method, system and readable storage medium for processing requests

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230411

Address after: Floor 24, China energy storage building, 3099 Keyuan South Road, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000

Patentee after: SHENZHEN LEXIN SOFTWARE TECHNOLOGY Co.,Ltd.

Address before: 518000 23-27 / F, China energy storage building, 3099 Keyuan South Road, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN FENQILE NETWORK TECHNOLOGY Co.,Ltd.