Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping UserID?
Message
From
02/09/2002 22:24:31
 
 
To
02/09/2002 21:54:18
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00696071
Message ID:
00696081
Views:
15
>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) && (name != document.cookie.substring(0,name.length))) return null;
    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" : "");
}
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform