Wednesday, October 20, 2010

ASP.NET 2.0 at the same time to prevent the same user login



To prevent the same user while landing page should record the information online (in this case the user name), and then determine which are the user login is already exists. Here has been to use a cache store login user name, but there is a problem is to know when the user is away system? This should clear the cache content on a regular basis, and that is to set a cache time. This time can be the user's session with the value of link failure happens when the user session when the value of the user information in the cache will be empty inside. This reached the landing of the effect of preventing the same time, the specific code as follows:

On the landing place of success:

string key = TextBox1.Text; / / user name text box set to cache Keyword

string uer = Convert.ToString (Cache [key]); / / read the corresponding value of the user cache

/ / Determine whether the cache in the user's information, if the value is not relevant, the user does not login

if (uer == null | | uer == String.Empty)

(

/ / Define cache expire time

TimeSpan SessTimeout = new TimeSpan (0, 0, System.Web.HttpContext.Current.Session.Timeout, 0, 0);

/ / Insert the first time a user login related to cache values

HttpContext.Current.Cache.Insert (key, key, null, DateTime.MaxValue, SessTimeout, System.Web.Caching.CacheItemPriority.NotRemovable, null);

Session ["ADMINID"] = TextBox1.Text;

Response.Redirect ("main.aspx");

)

else







Recommended links:



What conditions should be Maliciously registered domain name?



MATHEMATICS Education brief



JSP Experience Of Learning About The Steps And Timing



DivX TO 3GP



Teach you when the head: how to reduce your staff turnover rate?



FLV to SWF



SAP Henning dialogue: a complete Understanding of China



Who is "Green Dam" in pay?



Wang Yukun: Power In The Union Heavy Industry "butterfly"



My Favorite Themes And Wallpaper



Jusched.exe What process? How to disable?



ASF to MPG



Wealth Life - Interview With Dr. Xin Rong Record



Best Religion



The implementation of EU environmental directives will rob the U.S. Green Certification in China



Astrology OR Biorhythms Or Mystic Expert



Computer Clean Up Software Review How To Scan



Tuesday, October 5, 2010

jsp precompilation issues



This method is by far the JSP pre-compiled for the most convenient way ("flick-a-switch" approach), he has many pointed to no significant shortcomings. If an error in the JSP's compile time or at deployment (or redeployment) of the time of the year, Web application, pre-compiled will be suspended in exceptional office. In addition, if a particular Web application JSP files inside the case there are many, declarative precompilation significantly affect deployment time, blocking deployment until all the files have been compiled. For large applications, where there are hundreds of JSP files to declarative pre-compiled to be executed when the trend of this deployment time in minutes to calculate (in some cases 10 to 15 minutes, other circumstances may be more) . Idea to start a server instance, in a specific Web application deployment cycle into the state of pre-compiled with declarative activation. If there are a lot of JSP application files and deployment, close to completion already spend a lot of time, throw an exception during compilation because the sudden failure, of course, lead to frustration. Although at first seems more convenient, but the declarative build on production systems result in significant risk management, it should be careful consideration before using it.

Process in pre-compiled

Under the WLS most reliable method of pre-compiled JSP is to use the Java command line, weblogic.jspc, which is located in the lib directory under WLS installation of weblogic.jar file. This tool allows developers to deploy in the development stage and the issue resolved before compile time when compiling JSP files needed. It also provides for the production system capable of achieving a pre-compiled JSP administrator. The main advantage of this usage are:

鈼?files can be pre-compiled once and then can be deployed many times. (This is not an instance of the server affected by reuse)

鈼?compile-time exception can be resolved without affecting the pre-deployment.

鈼?class can cluster deployment.

Disadvantage is the need to use weblogic.jspc human intervention, and its development time and become obsolete when the JSP file must be re-run time. However, Kaolv to the front of the two methods of discussion, we almost can not be that convenient as a drawback of this method, so recommend it Zuowei the most reliable and flexible mechanism for achieving pre-compiled JSP.

Executive weblogic.jspc

In order to more effectively use weblogic.jspc, you must first understand its usage and grammar. This article we will use WLS6.1 SP2's tools. Note: The following shows the syntax and best practices should be applied to all versions of WLS 6.1 and the new WLS 7.0.

To call the command-line JSP compiler (weblogic.jspc), you must determine the following:

鈼?PATH environment variable must contain J2SE1.3 installed on your machine binary packages directory (for example, / opt/j2se/1.3.1/sdk/bin or c: sunsoftj2se1.3.1sdk






相关链接:



Dell's Expansion Overseas Territory Shake The HP Printer Status Of The King



A brief description of JSF and Facelets



PHOTOSHOP And Seamless Texture



Lists Chat And Instant Messaging



ANSYS Chinese Help



Switch to THE best period of 2 to 3 years



Teaches you to grasp the chart from DB2 to delete several lines



DAT To MP4



Report Basic Or VB Or VB DotNet



comments System UTILITIES



VOB to MPG



The basic concepts OF object-oriented



Hot Terminal And Telnet Clients



MKV To MOV



3gpp2 Files to qt



How do I View the size of user tables share space



ADSL slow down and eliminate the causes for eight summary


Several users have, ADSL high-speed broadband network in use, sometimes not as good as the original narrow-band MODEM (modem) Internet speed. So, Internet is slow mainly what causes? How to quickly find and remove it?

1. NIC binding agreement too.

Slow access, the LAN users are common, because too many card agreements binding. Card on a number of agreements, if bound, when the data through the network card, the computer would take a lot of time to determine which protocol to use this data to send, then the user will feel the Internet slow. The solution is: Let a network card to connect only to run the PPPOE protocol ADSL, to provide external access to the Internet connection, the other to run the LAN card and other agreements to fulfill their job performance, so the client connection speed will be improved.

2.ADSL bad cooling equipment.

ADSL equipment work more than fever, usually pay attention to cooling, many users the ADSL equipment and routers, hubs, etc. in a cabinet, the work of a variety of equipment cooling, affecting the normal operation of the ADSL. Just surfing the web as normal, 5 minutes, speed down, download speed and narrowband 56kMODEM the same time a very hot hand touch equipment, for an ADSL device, the speed will come up. Therefore, computer, ADSL and other equipment not on the same cabinet, to be distributed display, equipment, ventilation and heat dissipation between the left channel, computer room temperature is best achieved, the general ambient temperature should be controlled in 10 鈩?~ 30 鈩? Relative humidity was maintained at 40% to 70% as good.

3. Access to the Internet interface error.

This is because Windows (Windows software) IE Internet Connection Wizard to specify access to the Internet interface error caused, Enterhet300 (virtual dial-up software) using a type of virtual LAN dial-up, while the IE default using ordinary dial-up, visit the first time IE looking for dial-up interfaces. Can not find the dial-up later on there to find the proxy server inside the LAN, and finally will find Enternet300 this interface, it will be very slow, only to re-run again Internet (Internet) connection wizard, select the LAN mode, and removed the automatic search for proxy servers solved.

4. System does not support multitasking.

If the user's computer just meets the minimum configuration, this system can not support while browsing the web, downloading software, music and many other tasks. A variety of tasks while at work will feel the Internet slow. Thus, while generally not more than two tasks as well.

5. Does not bind TCP / IP protocol.

Unbound TCP (Transmission Control Protocol) / IP (international agreement), and more for the network card drivers installed without a good, quality card problem, PCI (bus standard) slot bad. Should first device manager to delete the network card driver, reboot and install drivers; if not good, the card for a PCI slot, and back to a network card can not good.

6. Telephone lines and poor quality.

ADSL technology requires high quality of telephone lines, ADSL is currently used RADSL (ie rate adaptive ADSL), if the telephone office to a telephone line between users in a certain period of time, interference by external factors, RADSL based on line the quality and transmission distance, dynamically adjust the user's access speed. If access to the foreign site, bandwidth and speed will be subject to export other Zhandian lines, equipment configuration and other factors, need to keep the network Xietiao with the solution. Line problems are: because the construction did not follow the construction standards, quality left hidden, such as mice did not result in additional plastic casing snapped line; patch panels or other materials due to quality problems, leading to poor contact jumper; users renovation dark apply the interior line of failures.

7. Software is not reset.

Users install ADSL broadband, the Internet has changed the conditions, the corresponding tools are not re-set, is also one of the reasons causing slow. Such as communications software QQ, will need it for some settings. Select from the QQ panel "System Parameters" command, click on "Network Settings" tab, the original "dial" to "LAN access Internet" on it.

8. Microcomputer hardware and software problems.

Hardware failures mainly in the user card is damaged or not properly installed; user computer motherboards and network cards are not compatible; user computer grade is too low, leading to slow less memory. Such as hardware configuration Celeron 600/64MB memory, WINDOWSXP operating system, will lead to very slow running computer, Internet speed would be higher. Software failure was mainly due to computer users do not understand the knowledge, in the course of misuse, leading to damage to the operating system error or dial-up software can not access; user does not operate correctly, so dial-up software illegally closed, leading to software errors; users after browsing some pages , system problems, when dealing with accidentally deleted the backup dial-up software; user computer problems, reinstall system, dial-up software is not installed. As long as these problems can re-install dial-up software fault exclusion.






相关链接:



Lay The Foundation For The Bug Prevention [2]



Seagate LAYOFFS affected 1,100 people in China: Li Xudong transferred to retire



PMP Exam tips



QuickTime To MPG



My favorite Dictionaries Education



Illustrator performance dimension and with smooth texture



The new VPN strength



Kai-fu Lee: The most worried about the phenomenon of misleading the 80 students after the start-Star



learn office 2010 installed a new bulk



MPG to AVI



Knowledge Need To Update Staff Training Is Not Losing Money "trading"



OGM to AVI



reviews Seasonal - SCREEN Savers



"Finance" magazine: Li DONGSHENG, "Dunkirk"