CN104348818A - System quitting processing method - Google Patents
System quitting processing method Download PDFInfo
- Publication number
- CN104348818A CN104348818A CN201310341931.3A CN201310341931A CN104348818A CN 104348818 A CN104348818 A CN 104348818A CN 201310341931 A CN201310341931 A CN 201310341931A CN 104348818 A CN104348818 A CN 104348818A
- Authority
- CN
- China
- Prior art keywords
- exits
- logging
- data
- activity
- processing method
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a system quitting processing method. When a client program logs in at a certain place, if a computer meets sudden power failure or the computer is unexpectedly shut down or a system quilts from the process, data which is not delivered in time cannot be lost. The original data can be automatically restored during the log-in in a next time, so the trouble of secondary input by a user or breaking point forming is reduced.
Description
Technical field
The present invention relates to the processing method that a kind of system exits.
Background technology
Have a lot of client-side program in the market after somewhere logs in, when surprisingly closing if there is unexpected power-off or computer, the data do not submitted in time will be lost, also will logging data again again when next time logs in again, use bring larger trouble to user.Thus need to explore one and automatically can repair legacy data at the time of emergency, user can be reduced and re-enter troublesome method.
Summary of the invention
The object of the invention is to overcome defect of the prior art, provide the processing method that a kind of system exits, the method for the invention can repair legacy data at the time of emergency automatically, thus can reduce the trouble that user re-enters.
The present invention is achieved by the following technical programs.
The processing method that a kind of system exits, described method comprises the steps: that logging in system by user carries out activity, system timing can judge whether activity data changes, as unchanged then inoperation, if changed, can the Data Update of change be saved in database, when logging off: (1) is when normally logging off, activity is still had if current, as user by force shutdown system time, then each activity data can be saved in database by system, and identification data is for closing, and call the method for the logging status that closes account, then system normally exits; If without any activity in current system, when logging off, then call the method for the logging status that closes account, then system normally exits; (2) when unexpected logging off, the account upper once log in time will repair the activity data interrupted last time.
The processing method that above-mentioned a kind of system exits, wherein, described shutdown system by force refers to it is not terminate all activities one by one but shutdown system by force.
The processing method that above-mentioned a kind of system exits, wherein, described accident logs off and refers to that the unexpected power-off of computer or computer are surprisingly closed or system exits from process.
The processing method that above-mentioned a kind of system exits, wherein, the method of described reparation is the restorative procedure of service of calling after logining successfully, Rule of judgment in method is the temporary activity data first reading serializing, if data are sky so represent that user surprisingly logs off, it is so the activity performing neutralization time-out to reading state in hotlist, its active state is updated to closedown, if data so do not represent it is now that many people log in so by force for empty, the method upgrading active state need not be called.
The processing method that a kind of system of the present invention exits, when client-side program is after somewhere logs in, if when the unexpected power-off of computer or computer are surprisingly closed or system exits from process, the data do not submitted in time can not be lost, automatically can repair legacy data when next time logs in again, thus reduce the trouble that user re-entered or formed breakpoint.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the processing method that a kind of system of the present invention exits.
Embodiment
Below by way of specific embodiment, the specific embodiment of the present invention is described in further detail.
The processing method that a kind of system exits, as the schematic flow sheet that Fig. 1 is the processing method that a kind of system of the present invention exits, described method comprises the steps: that logging in system by user carries out activity, system timing can judge whether activity data changes, as unchanged then inoperation, if changed, can the Data Update of change be saved in database, when logging off: (1) is when normally logging off, activity is still had if current, user terminates all activities one by one, but by force shutdown system time, so each activity data can be saved in database by system, and identification data is for closing, and call the method for the logging status that closes account, namely the information of the active user recorded in server memory is deleted, then system normally exits, if without any activity in current system, when logging off, then call the method for the logging status that closes account, delete the information of the active user recorded in server memory, then system normally exits, (2) when unexpected logging off, power-off as unexpected in computer, when computer is surprisingly closed or system exits from process, so the account upper once log in time will repair last time interrupt activity data, the method of repairing is the restorative procedure of service of calling after logining successfully, Rule of judgment in method is the temporary activity data first reading serializing, if data are sky so represent that user surprisingly logs off, it is so the activity performing neutralization time-out to reading state in hotlist, its active state is updated to closedown, if data so do not represent it is now that many people log in so by force for empty, the method upgrading active state need not be called.For unexpected situation about logging off, the user profile exited can not be eliminated, the treatment measures taked arrange timer in server background, judge whether all login users recorded in server memory keep connecting by run timing device, namely timer is attempted connecting the login user preserved in the server, if user cannot be connected, then delete the information of the active user recorded in server memory.Method is as follows:
protected override void ThreadDoWork()
{
// all login user information
IList<CustomerInfo> _cs = CustomerCollection.Instance.CustomerInfos;
for (int i = _cs.Count - 1; i >= 0; --i)
{
CustomerInfo _c = _cs[i];
try
{
// judge whether to also have connection
if (_c.IClientCallback.IsConnective())
{
continue;
}
}
catch (System.Exception)
{
// delete user profile
CustomerCollection.Instance.RemoveAt(_c.OnlineKey);
}
}
}
When calling the information of deleting the active user recorded in server memory, send message all can to other online users, notice has deleted user's off-line, and the contact list data that upgrades in time.
Claims (4)
1. the processing method that exits of system, it is characterized in that, described method comprises the steps:
Logging in system by user carries out activity, system timing can judge whether activity data changes, as unchanged then inoperation, if changed, can the Data Update of change be saved in database, when logging off: (1) is when normally logging off, activity is still had if current, as user by force shutdown system time, then each activity data can be saved in database by system, and identification data for close, and call the method for the logging status that closes account, then system normally exits; If without any activity in current system, when logging off, then call the method for the logging status that closes account, then system normally exits; (2) when unexpected logging off, the account upper once log in time will repair the activity data interrupted last time.
2. the processing method that exits of a kind of system as claimed in claim 1, is characterized in that, described shutdown system by force refers to it is not terminate all activities one by one but shutdown system by force.
3. the processing method that exits of a kind of system as claimed in claim 1, it is characterized in that, described accident logs off and refers to that the unexpected power-off of computer or computer are surprisingly closed or system exits from process.
4. the processing method that exits of a kind of system as claimed in claim 1, it is characterized in that, the method of described reparation is the restorative procedure of service of calling after logining successfully, Rule of judgment in method is the temporary activity data first reading serializing, if data are sky so represent that user surprisingly logs off, it is so the activity performing neutralization time-out to reading state in hotlist, its active state is updated to closedown, if data so do not represent it is now that many people log in so by force for empty, the method upgrading active state need not be called.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310341931.3A CN104348818A (en) | 2013-08-08 | 2013-08-08 | System quitting processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310341931.3A CN104348818A (en) | 2013-08-08 | 2013-08-08 | System quitting processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104348818A true CN104348818A (en) | 2015-02-11 |
Family
ID=52503623
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310341931.3A Pending CN104348818A (en) | 2013-08-08 | 2013-08-08 | System quitting processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104348818A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1927431A (en) * | 2005-09-08 | 2007-03-14 | 乐金电子(中国)研究开发中心有限公司 | Mobile communication terminal game storage method and mobile communication terminal thereof |
CN101414762A (en) * | 2007-10-16 | 2009-04-22 | 深圳市研祥智能科技股份有限公司 | Method, apparatus and system for power-off protection |
CN103034565A (en) * | 2012-12-05 | 2013-04-10 | 上海创图网络科技发展有限公司 | Disaster recovery method for large-scale 3D (three-dimensional) data edition period |
CN103207799A (en) * | 2013-04-23 | 2013-07-17 | 中国科学院微电子研究所 | Method, device and system for closing down and starting up computer system |
-
2013
- 2013-08-08 CN CN201310341931.3A patent/CN104348818A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1927431A (en) * | 2005-09-08 | 2007-03-14 | 乐金电子(中国)研究开发中心有限公司 | Mobile communication terminal game storage method and mobile communication terminal thereof |
CN101414762A (en) * | 2007-10-16 | 2009-04-22 | 深圳市研祥智能科技股份有限公司 | Method, apparatus and system for power-off protection |
CN103034565A (en) * | 2012-12-05 | 2013-04-10 | 上海创图网络科技发展有限公司 | Disaster recovery method for large-scale 3D (three-dimensional) data edition period |
CN103207799A (en) * | 2013-04-23 | 2013-07-17 | 中国科学院微电子研究所 | Method, device and system for closing down and starting up computer system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105677477B (en) | Method and device for optimizing application program resources and electronic equipment | |
CN102243594A (en) | Method for safely and remotely upgrading embedded Linux system software | |
CN107451040B (en) | Method and device for positioning fault reason and computer readable storage medium | |
CN110704582B (en) | Information processing method, device and equipment | |
CN109308252A (en) | A kind of fault location processing method and processing device | |
CN108429819A (en) | Artificial intelligence flue-cured tobacco system and method based on Internet of Things | |
CN104933520A (en) | Processing method of examination and approval items | |
CN109358893A (en) | A kind of the online upgrading method, apparatus and system of FPGA program | |
CN102625295A (en) | Secure internet access system of mobile phone and method thereof | |
CN103942121A (en) | Data recovery system and mobile terminal | |
CN112911013A (en) | Cloud application processing method and device, computer equipment and storage medium | |
CN102436567B (en) | Information processing device, password diagnosing method | |
CN102096772B (en) | Smart client system of power transmission and transformation project | |
CN100372307C (en) | Method for managing system log | |
CN104348818A (en) | System quitting processing method | |
CN111817863A (en) | Power management method and equipment | |
CN106294070A (en) | Method for monitoring utilization rate of CPU (central processing unit) and hard disk in server memory | |
CN105100125A (en) | Sleep control method, sleep control device and sleep control system for virtual desktop | |
CN115795359A (en) | Signal type distinguishing method and device and computer equipment | |
CN106452878B (en) | Service switch method, device and system in a kind of local area network | |
CN112671622B (en) | Safety monitoring method and device based on intelligent mobile equipment and intelligent mobile equipment | |
CN205121564U (en) | Embedded spare still original mounting encrypts in system | |
CN111031098B (en) | VDI cloud desktop emergency maintenance system and method | |
CN107453959A (en) | The management method and its device of a kind of network interface card | |
CN112055086A (en) | IIS site, Windows service publishing and managing method, operation and maintenance system and platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150211 |
|
WD01 | Invention patent application deemed withdrawn after publication |