Specifications

FIGURE 20.4
Because the user has not yet logged in, show her a login page.
This page gives the user a place to log in. If she attempts to access the Members section with-
out logging in first, she will get the message shown in Figure 20.5.
Using Session Control in PHP
C
HAPTER 20
20
USING SESSION
C
ONTROL IN
PHP
439
FIGURE 20.5
Users who havent logged in cant see the site content; they will be shown this message instead.
However, if the user logs in first (with username: testuser and password: test123 as set up in
Chapter 14) and then attempts to see the Members page, she will get the output shown in
Figure 20.6.
25 7842 CH20 3/6/01 3:42 PM Page 439