-
Whats the best way to stop users from using the back button.
What's the best way to stop users from backing up pages.
I want users to go through the site in 1 direction only ...
One web site I used when I tried to back up I got a "page has expired"
message that I liked quite a lot.
any tips ???
--
--
Regards Taco Bill
-
Re: Whats the best way to stop users from using the back button.
Hi Taco Bill,
"taco Bill" <nospam.Sam@nospam.com.au> wrote in message
news:3de58522$1@tnews.web.devx.com...
> What's the best way to stop users from backing up pages.
> I want users to go through the site in 1 direction only ...
> One web site I used when I tried to back up I got a "page has expired"
> message that I liked quite a lot.
This thread should give you some ideas:
http://makeashorterlink.com/?T6CA12B92
--
Constance Petersen, DevX newsgroup section leader
Build a great Web site: http://www.smartisans.com/
Learn ASP.NET: "Programming the Web with Visual Basic .NET"
http://amazon.com/exec/obidos/ASIN/1...tancepeterseA/
--
Please reply in the newsgroup so everyone can benefit
-
Re: Whats the best way to stop users from using the back button.
A method I can think of is to set the response.Expires = -1. The page will
exire the second it is sent, the back button will more or less be useless
for all the pages they access on your site.
Eg.
Start Page --> Page 1
Page 1 --> Page 2
Page 2 --> Page 3
Page 3 Back Page 2 (Page expired)
page 2 Back Page 1 (Page Expired)
Page 1 Back Start Page
Q*Bert
@(#$*%
"taco Bill" <nospam.Sam@nospam.com.au> wrote:
>What's the best way to stop users from backing up pages.
>
>I want users to go through the site in 1 direction only ...
>
>One web site I used when I tried to back up I got a "page has expired"
>message that I liked quite a lot.
>
>any tips ???
>
>
>
>
>
>--
>--
>Regards Taco Bill
>
>
-
Re: Whats the best way to stop users from using the back button.
That doesn't prevent users from refreshing the page though. If you want to
prevent users from going backwards at all, you need to keep track of where
users are in the sequence (e.g. SequencePage=1, SequencePage=2, etc.). You
can do that via cookies, or by setting a hidden form field value in each
page, or Session variables, or database tables. You keep a full list of the
pages on the server in an array. That way, when you receive a request, you
can check the user's current positional value. If the user is on page 2 and
requests page 1, for example, you simply do a server or client-side redirect
to the page you *want* them to see. In contrast, if the user is on page 2
and requests page 3, you allow the request to proceed normally. If the value
isn't present, you redirect to the beginning of the sequence.
"John" <john@aol.com> wrote in message news:3e36eb1b$1@tnews.web.devx.com...
>
> "Q*bert" <luke_davis_76@hotmail.com> wrote:
> >
> >A method I can think of is to set the response.Expires = -1. The page
will
> >exire the second it is sent, the back button will more or less be useless
> >for all the pages they access on your site.
> >
> >Eg.
> >Start Page --> Page 1
> >Page 1 --> Page 2
> >Page 2 --> Page 3
> >Page 3 Back Page 2 (Page expired)
> >page 2 Back Page 1 (Page Expired)
> >Page 1 Back Start Page
> >
> >Q*Bert
> >@(#$*%
> >"taco Bill" <nospam.Sam@nospam.com.au> wrote:
> >>What's the best way to stop users from backing up pages.
> >>
> >>I want users to go through the site in 1 direction only ...
> >>
> >>One web site I used when I tried to back up I got a "page has expired"
> >>message that I liked quite a lot.
> >>
> >>any tips ???
> >>
> >>
> >>
> >>
> >>
> >>--
> >>--
> >>Regards Taco Bill
> >>
> >>
> >
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks