I. Major improvements to 0_0_0001_beta2:1. Added viewing and backup of User Logon/logout records2. boot, shutdown, user logon, and user logout records are displayed in different colors.3. Improved the code for creating backup Record Files
Note:If you cannot view User Logon/logout records, follow these steps:(1) Open the Group Policy Editor. Method: start -- ru
is the ancestor of all processes, and its Process number is always 1. Therefore, sending a term signal to init will terminate all user processes and daemon processes. Shutdown uses this mechanism. Init defines eight runlevels. init 0 indicates shutdown, and init 1 indicates restart. I will not describe it here for a long article on init. In addition, the telinit command can change the running level of init. For example, telinit-Is can enable the system to enter the single-user mode, and the inf
restarting.
[-P] this option is the default option. It is called poweroff when shutdown.
Init
Init is the ancestor of all processes, and its Process number is always 1. Therefore, sending a term signal to init will terminate all user processes and daemon processes. Shutdown uses this mechanism. Init defines eight runlevels. init 0 indicates shutdown, and init 1 indicates restart. I will not describe it here for a long article on init. In addition, the telinit command can change the running
For a complete signal Life Cycle (after the signal is sent to the corresponding processing function for execution), it can be divided into three phases:
Signal Generation
Sign up in process
Logout of signal in process
Signal processing function execution
1. Signal Generation
There are two sources for the occurrence of signal events: hardware sources (for example, we press the keyboard or other hardware faults); software sources, the most co
This article mainly introduces the problem of session logout and login in php. if you need a friend, please refer to it and hope to help you in php, if the session is used to determine whether the user logs in, this can be done when the user exits:
Session_start ();Session_destroy ();
The session is ended. In the next sentence, JavaScript should be written to redirect the page.
Script alert ("logged out! "); Location. href =" login. php "; script
logout command after entering X
Gnome environment: gnome-session-save -- logoutOpebox environment: openbox -- exit
Certificate ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Modify the IP address of ubuntu
Temporarily modify IP address:Sudo ifconfig eth0 192.168.X.X netmask 255.255.255.0 up
Permanent IP address modification:Su
disconnecting the Native connection # # disconnect all connections # # Disconnect the native connection, and then reconnect the free address (this is to set the program to run every 1 hours to prevent the billing address from connecting for too long.) Time off the network, save the use of the billing address) if __name__ = = ' __main__ ': If Len (sys.argv)! = 2:print (' Usage 2. Automatic execution every 1 hoursLinux is more convenient, directly set crontab can be. Under Windows, you can set up
Php session logout and login issues. In php, if the session is used to determine whether the user logs on to the server and exits, it can be like this: session_start (); session_destroy (); the session indicates that it has ended. The next statement should be written in php. if the session is used to determine whether the user logs in or out, this can be done:
Session_start ();Session_destroy ();
The session is ended. In the next sentence, JavaScr
I:
Ii. Source Code
Using system; using system. collections. generic; using system. LINQ; using system. text; using system. windows; using system. windows. controls; using system. windows. data; using system. windows. documents; using system. windows. input; using system. windows. media; using system. windows. media. imaging; using system. windows. navigation; using system. windows. shapes; using system. diagnostics; using system. runtime. interopservices; one-click lock for namespace shutdown {/
Function: Timed Shutdown, restart, logout, standby, and sleep.
After setting, the window can be minimized. The program will add an icon in the system tray area for convenient management.
Written in masm32, the interface is relatively simple and small.
File Description: e: \ masm32 \ works \ closepc \ closepc.exeAttribute: ---Digital Signature: NoPE file: YesLanguage: Chinese (China)File version: 0.0.0001beta4Description: Timed Shutdown, restart, an
Some customers once thought that the cancellation of the SharePoint site was not friendly enough. They wanted to click it to log out. They checked out the cancellation of the SharePoint site in singout under _ layouts. the ASPX page is a short JavaScript code, as shown in the following figure. When you click logout, it will be transferred to this page:Function _ spbodyonload (){Try{Document.exe ccommand ("clearauthenticationcache ");}Catch (e ){}Windo
For windows xp pro and later systems, the windows user name and password are stored in the network sharing verification, Intranet or proxy Domain Verification, runas/savecred, and other methods, you can manage the passwords of users and accounts in the control panel, or you can run control keymgr. dll.
Credentials and Protect in the user directory % appdata %/microsoft save these usernames and passwords. After deleting these two directories, restart the system to clear and save the dynamic pa
PHP Logout Features
The PHP manual writes Session_destroy () destroys all of the data associated with the current session. It does unset any of the global variables associated with the session, or unset the session cookie. To use the session variables again, session_start () have to be called.
In order to kill the session altogether, like to log the user out, the session ID must also is unset. If a cookie is used to propagate the session ID (default
Document directory
Parameters
System APIs must be called to control computers.
Method To Call The system API:
1: using system. runtime. interopservices;
2: Introduce the DLL in the format of [dllimport ("USER32")]
3: API declaration, in the format of internal static extern bool exitwindowsex (INT flg, int rea );
There are many ways to perform operations such as shutdown, logout, and restart.
Http://blog.csdn.net/ylqmf/archive/2010/01/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.