Re: Logout Script

From: MD Websunlimited (none_at_none.com)
Date: 11/29/04


Date: Sun, 28 Nov 2004 18:43:58 -0600

Hi Harddrive747,

You have to abandon the session using session.abandon.

<form action=thispage.asp post >
<input type="submit" value="logout" name="action" >
</form>

<%
if request.servervariables("REQUEST_METHOD") = "POST" then
    if request.form("action") = "logout" then
        session.abandon
        request.redirect "logout.asp"
    end if
end if

================

-- 
Mike -- FrontPage MVP '97-'02
J-Bots 2004 Released Special Pricing
http://www.websunlimited.com
FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible
-- 
Mike -- FrontPage MVP '97-'02
J-Bots 2004 Released Special Pricing
http://www.websunlimited.com
FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible
"Harddrive747" <Harddrive747@discussions.microsoft.com> wrote in message news:B30144E7-827F-4A67-80DF-6690F283DA65@microsoft.com...
> Hey guys, I followed the Article number 825498, which tells me how to create
> a password-protected Web Page.
>
> I was able to create it and get it to work on my local machine.  However,
> I'm trying to figure out and understand how to create a log out button.
>
> Can you help.
> Thanks.
> Terry 

Loading