
In this part we will now logout the user and delete the value in the chat name cookie. We will also display a message notifying other users that this user has exited the chat room. This is all done in the logoff.asp file. Firstly, to get here the user would have to click on the 'Exit Chat room' button first. Then we have to log out the user. We do this by clearing the 'chatname' cookie. But before we do this we must create a new place for the user's chat name to be stored so that a message can be displayed for notifying other users about the departure of that user.
|