>Michel, thanks for the reply. In the past I worked a UNIX programmer and he was able to store the userid in a variable like ##UID via CGI scripts. Is there something similar for IIS and something that you have an actual code example? I am certainly no web expert so any help will be greatly appreciated. I am completely unfamiliar with basic authentication if that gives you an idea of my expertise on the web...
If you're looking for something visible across pages, than I would go for something global across the domain. You could go for a session variable or a cookie. For example, to benefit of javascript to set and read a cookie, you may use this common function that is available on several Web sites:
function Get_Cookie(name) {
var start = document.cookie.indexOf(name+"=");
var len = start+name.length+1;
if ((!start)
if (start == -1) return null;
var end = document.cookie.indexOf(";",len);
if (end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(len,end));
}
function Set_Cookie(name,value,expires,path,domain,secure) {
document.cookie = name + "=" +escape(value) +
( (expires) ? ";expires=" + expires.toGMTString() : "") +
( (path) ? ";path=" + path : "") +
( (domain) ? ";domain=" + domain : "") +
( (secure) ? ";secure" : "");
}