Hi Tedd,
Sorry to say it didn't work or at least I couldn't get it to work. As you
see the only thing I did was to tidy up the last $_SESSION['token']. however
I did try using True and False which disabled me completely.
<?php session_start(); ob_start();
$token = isset($_SESSION['token']) ? $_SESSION['token'] : 0;
if ($token == 1)
{
exit();
}
$_SESSION['token'] = 1;
?>
<HTML><HEAD><TITLE>create account/access codes</TITLE></HEAD>
<BODY>
Cheers - Paul
----- Original Message -----
From: "tedd" <[EMAIL PROTECTED]>
To: "NYPHP Talk" <talk@lists.nyphp.org>
Sent: Sunday, June 22, 2008 4:26 PM
Subject: Re: [nyphp-talk] Disabling browser back button.
At 9:07 PM +0100 6/21/08, PaulCheung wrote:
Hi
Can anybody suggest a way around this problem or point me in the right
direction?
Use a token.
<?php session_start();
$token = isset($_SESSION['token']) ? $_SESSION['token'] : 0;
if ($token == 1)
{
exit();
}
$_SESSION['token']) == 1;
That way the page will be loaded just once per session.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php