View Full Version : Log Out/Off Code

09-13-2008, 04:23 PM
I am new to HMTL and to programming itself. I joined this forum to see what I could learn. Please have a little patience with me.

I recently purchased a program called WWW File Share Pro. I am going to use this program to share files with members of my family (documents, photos, etc.).

The following "snipets" (?) of code appear in the HTML options of the WWW File Share Pro program itself (see attached image 9-13-2008 9-02-56 AM):

Click <a href="JavaScript:history.back()">&lt;&lt;&lt;Back</a> or <a href="JavaScript:history.back()"><img src="/icon15.gif" width="16" eight="16" border="0"></a> to go back.

Click <a href="/">Home</a> to visit homepage.

Click <a href="/upload1.htm">Upload</a> to upload file.

Immediately after setting up and running the program, I discovered that there was NO way to actually "log off" or "log out" of the program when the user completes whatever tasks he/she so desires. I have attached images of the "html options" page, the "login" screen (IP address obliterated), and the "user" screen.

The only options available to the user are as follows (see image 9-13-2008 9-07-54 AM):


I would like to add a "Log Off" or "Log Out" option so that the user could click a link to log out, instead of just closing the web page itself.

Is there anyone on this forum that could assist me with adding the proper code to make a log out link? Is it even possible?

I would also like to learn more about HTML programming. Can someone recommend a good book on HTML? I don't really understand that much about HTML, so I'll definitely need a book geared to the absolute beginner.

Any assistance with this would be much appreciated.


Joseph Y.

09-13-2008, 05:45 PM
Hey Joseph,

The first thing you should know is that HTML is a descriptive language (i.e., a "markup" language) and doesn't actually DO anything. It only says what other elements are.

So if you're looking to write some code that'll log you out of a session, you need to write it in the language you are working with…in this case it looks to be Javascript. Unfortunately, since I'm not familiar with your program, I have no idea what code will log you out of the program. If you can post some of the code that makes the login function work (I'm taking about the finished, rendered code that gets generated by the program) then maybe someone here can help.

As far as books, I can't recommend one offhand but I really like these online tutorials by HTML Dog: http://htmldog.com/guides/htmlbeginner/

09-10-2009, 05:44 PM
Moved per user request