tailieunhanh - Adobe Dreamweaver CS3 Unleashed- P28
Adobe Dreamweaver CS3 Unleashed- P28: The good news is Dreamweaver provides numerous windows, panels, inspectors, and toolbars for streamlining the way you build websites. The bad news, unfortunately, is that Dreamweaver provides numerous windows, panels, inspectors, and toolbars for streamlining the way you build websites. Why so many windows, panels, and so on, Dreamweaver is unprecedented in the feature set it provides, allowing developers complete control when building websites and applications | and better yet how can we use those credentials on other pages in the site to prevent users from trying to access pages without logging in first The great thing about the Log In User server behavior is that a session variable which we briefly mentioned in the previous chapter is automatically created for the user as follows Session MM_Username This session variable can be used in other pages as you ll see in the next section using server behaviors code or a combination of both to determine whether the user is logged in. Note The measure of activity that a user spends on a website during a specified period of time is known as a user session. The user session begins when the user accesses the application and ends when the user quits the application by either logging out or closing the browser . Because the user session is typically stored in a browser cookie developers can take advantage of sessions in an effort to store and persist specific data about the user. The Login User server behavior for instance uses user sessions to store a key authorizing the user to browse through a site that is protected by a user authentication system like the one we re creating here. Restricting Access Based on Username Password and Access Level Your next step in securing your web application is to restrict those users who do not meet criteria specified by you. You can specify that criteria by setting an access level that will eventually be used to track users as they navigate through your site. The reason for establishing access criteria is simple you want to make sure that your users do not accidentally navigate onto a page that they are not supposed to see such as the admin page. The last thing you want is for ordinary users to delete products from the EmployeeStore table. You can create access levels for your users by following these steps 1. Open the database management system for the type of database you are using. The following examples and subsequent screenshots assume that .
đang nạp các trang xem trước