I would like to use this script to put on all my html pages a link to: LOGIN or a link to LOGOUT, (if script returns NULL then the link to Login should be shown otherwise link to logout is shown on HTML page)
Such functionality can be easily implemented on the server side, and it will be in many ways a better solution than doing that in-browser, because:
- you won't have to deal with cross-browser compatibility issues;
- the server has access to a lot more information than is available to the script through cookies; for example, you could provide more links to personalized things like the user profile page, his/her unread messages and what not.
<a href="http://webjavenue.com/" target="_blank" rel="nofollow">Your first website in Java: easier than you think</a>
Joined: Feb 21, 2006
not sure how to go about it [ February 23, 2006: Message edited by: Mark Moore ]