Re: Logout Script

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Harddrive747 (Harddrive747_at_discussions.microsoft.com)
Date: 11/29/04


Date: Sun, 28 Nov 2004 17:59:01 -0800

Mike thanks for the information, however, I got another problem with this. I
had to make one change on the form to make sure it would post. So I did that
and everything seems to work fine, except for the redirect.

Here is the error message I get when I try to use this

Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'Redirect'
/Updates/SelActivity.asp, line 56

So I will change where the form action goes to and see what happens.

Thanks for your help.

"MD Websunlimited" wrote:

> 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
>
>
>


Quantcast