Re: Logout Script
From: Harddrive747 (Harddrive747_at_discussions.microsoft.com)
Date: 11/29/04
- Next message: TeeGee: "Hit Counter Doesn't Reset"
- Previous message: Tom: "Using webbot field values on a confirmation page"
- In reply to: MD Websunlimited: "Re: Logout Script"
- Next in thread: Bob Lehmann: "Re: Logout Script"
- Reply: Bob Lehmann: "Re: Logout Script"
- Reply: Thomas A. Rowe: "Re: Logout Script"
- Messages sorted by: [ date ] [ thread ]
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
>
>
>
- Next message: TeeGee: "Hit Counter Doesn't Reset"
- Previous message: Tom: "Using webbot field values on a confirmation page"
- In reply to: MD Websunlimited: "Re: Logout Script"
- Next in thread: Bob Lehmann: "Re: Logout Script"
- Reply: Bob Lehmann: "Re: Logout Script"
- Reply: Thomas A. Rowe: "Re: Logout Script"
- Messages sorted by: [ date ] [ thread ]