0.0.- in DreamweaverŽ, open the PHP_GenB dynamic page that you want to use to end the session or the page where you want to insert a "logout" link.
1.0.- from the "Server Behaviors" panel select "Authentication: Log Out User": 1.1.- enter the parameters requested by "Authentication: Log Out User": 1.2.- Log Out When (end session when): Type of log out control:
-. Link Clicked -. Page Loads
NOTE: there are two ways to end the session:
-. when you want the user to go to a "good-bye" page to end the session, the best option is to construct a
"Log Out" page, which, when presented to the user, ends the session "Log Out When: Page Loads". This way, the user can end the session anywhere, by a simple "link" to a Log Out page.
-. when you want the user to go to an outside page or simply to a page not devoted explicitly to the "good-bye" process to end the session, the best option to choose is a logout process "Log Out When: Link Clicked".
1.3.-When Done, Go To (when the session is over, go to): URL of the destination page to which you are sending the user when the session is over (good parameter for the option "Log Out When: Link Clicked").
in the next chapter, the use of session variables is described session variables. |