Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > PHP
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 5:24 PM   #1
Lee Marsh
 
Lee Marsh's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default No back button

Okay, I'm really stumped on this one. I need a way to prevent a user from
using their back button to access pages in a series. Basically someway to
check to make sure they didnt use the back button to reach a specific page.
I've figured out a way to keep the users from skipping to and fro from
pages, so maybe all I need is a way to determine what page they came from,
since the pages are in a predictible cycle. Is there anyway to detect this?
I know my explination is a little vague, but to get into specifics, but it
would take a long to describe everything. Thanks in advance.


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Advertisements
Old 07-01-2007, 5:24 PM   #2
SeeSchloss
 
SeeSchloss's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default No back button

> Okay, I'm really stumped on this one. I need a way to prevent a user
from
> using their back button to access pages in a series. Basically

someway to
> check to make sure they didnt use the back button to reach a

specific page.
> I've figured out a way to keep the users from skipping to and fro

from
> pages, so maybe all I need is a way to determine what page they came

from,
> since the pages are in a predictible cycle. Is there anyway to

detect this?
> I know my explination is a little vague, but to get into specifics,

but it
> would take a long to describe everything. Thanks in advance.


I'm not sure about what you want, maybe you can check the referrer and
if it isn't the logical previous page then redirect to the next ?
But if the browser uses its cache to display the page, php won't help
you anyway.

_______________________________
SeeSchloss — GPU.sf.net / Nye.free.fr


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:24 PM   #3
Markus Ernst
 
Markus Ernst's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default No back button


"Lee Marsh" <burgermeister01@insightbb.com> schrieb im Newsbeitrag
news:EEi1b.168468$cF.59104@rwcrnsc53...
> Okay, I'm really stumped on this one. I need a way to prevent a user from
> using their back button to access pages in a series. Basically someway to
> check to make sure they didnt use the back button to reach a specific

page.
> I've figured out a way to keep the users from skipping to and fro from
> pages, so maybe all I need is a way to determine what page they came from,
> since the pages are in a predictible cycle. Is there anyway to detect

this?
> I know my explination is a little vague, but to get into specifics, but it
> would take a long to describe everything. Thanks in advance.
>

As the back button is controlled by the browser software and not by the
webpage it might be best to write "Don't use the back button" on your page.

--
Markus


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:24 PM   #4
Terry Austin
 
Terry Austin's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default No back button

"Lee Marsh" <burgermeister01@insightbb.com> wrote in
news:EEi1b.168468$cF.59104@rwcrnsc53:

> Okay, I'm really stumped on this one. I need a way to prevent a user
> from using their back button to access pages in a series. Basically
> someway to check to make sure they didnt use the back button to reach
> a specific page. I've figured out a way to keep the users from
> skipping to and fro from pages, so maybe all I need is a way to
> determine what page they came from, since the pages are in a
> predictible cycle. Is there anyway to detect this? I know my
> explination is a little vague, but to get into specifics, but it would
> take a long to describe everything. Thanks in advance.


There's no way to prevent the browser from using the back button. Use a
Session cookie to track what page they're on, and what page is next.

--
Larry Flynt for Governor
Bringing dignity back to the Governor's Mansion

Terry Austin
taustin@hyperbooks.com
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:24 PM   #5
Lee Marsh
 
Lee Marsh's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default No back button

That's kind of what I'm doing right now, that's how I prevented users from
skipping pages. Anyways, I think I might be able to actually pull it off, if
I knew some function or something that told me what the last page the user
was at. Isn't there some way to detect that? On a page counter service I
used to use, they told you where your visitors were referred from, so I know
there must be some way.

Anyways, it may all be a moot point, since my ISP found out I was running a
server off my computer. They threatened to pull the plug on me if I didn't
shut down, so until I can get a web host that supports PHP, no more
programming for me = [


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:24 PM   #6
Terry Austin
 
Terry Austin's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default No back button

"Lee Marsh" <burgermeister01@insightbb.com> wrote in
news:jkw1b.174906$Oz4.45500@rwcrnsc54:

> That's kind of what I'm doing right now, that's how I prevented users
> from skipping pages. Anyways, I think I might be able to actually pull
> it off, if I knew some function or something that told me what the
> last page the user was at. Isn't there some way to detect that? On a
> page counter service I used to use, they told you where your visitors
> were referred from, so I know there must be some way.


The Referrer header is not reliable. It is controlled by the browser. If
you're already using PHP to keep people from skipping, it should be easy to
keep them from going back. Learn about Sessions. They're basically short
term cookies. Set a Session cookie to the last page they viewed, and when
the next page is accessed, read that cookie and it tells you what the last
page was.
>
> Anyways, it may all be a moot point, since my ISP found out I was
> running a server off my computer. They threatened to pull the plug on
> me if I didn't shut down, so until I can get a web host that supports
> PHP, no more programming for me = [


The joys of consumer broadband.

--
Larry Flynt for Governor
Bringing dignity back to the Governor's Mansion

Terry Austin
taustin@hyperbooks.com
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:25 PM   #7
Trookat
 
Trookat's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default No back button


"Lee Marsh" <burgermeister01@insightbb.com> wrote in message
news:EEi1b.168468$cF.59104@rwcrnsc53...
> Okay, I'm really stumped on this one. I need a way to prevent a user from
> using their back button to access pages in a series. Basically someway to
> check to make sure they didnt use the back button to reach a specific

page.
> I've figured out a way to keep the users from skipping to and fro from
> pages, so maybe all I need is a way to determine what page they came from,
> since the pages are in a predictible cycle. Is there anyway to detect

this?
> I know my explination is a little vague, but to get into specifics, but it
> would take a long to describe everything. Thanks in advance.
>
>


You can use the header() function to set the page expire at a short time
(www.web-caching.com has more info on http headers that get sent to the
browser )

this way if the person clicks the back button they get "the page you have
requested has expired.
that should stop it

example code
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache");


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:25 PM   #8
Lee Marsh
 
Lee Marsh's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default No back button

Hmm, okay, I said screw my ISP and ran my server again just long enough to
see how well this works, becuase I like this idea. It's resourceful and it
doesn't require me to register any more variables with the session, but
there's one problem: I can't seem to get it to work right, and I have no
idea why. I put all the header commands in an include file and put it at the
very beginning of every page I wanted to protect in this manner. Here is the
contents of this file:
<?php

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0, false");
header("Pragma: no-cache");
?>

What might be wrong with this picture?


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags:




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Button/Hyperlink Bob HTML 10 01-27-2008 8:09 PM
Back button Albert Ahtenberg PHP 1 07-01-2007 3:13 PM
Adobe Photoshop cs3 version 10 - why no back or forward button in case of mistakes ? henry Graphics in general 29 06-12-2007 1:40 PM
Button Jim Graphics in general 1 06-11-2007 7:17 PM
Toolbar Refresh Button Help... David Boothe Database 1 06-10-2007 12:25 AM


Featured Websites




All times are GMT +1. The time now is 12:56 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98