NYCPHP Meetup

NYPHP.org

[nycphp-talk] $_SERVER['REQUEST_METHOD'] and Javascript history object

betenoir at echonyc.com betenoir at echonyc.com
Mon Jul 14 16:45:25 EDT 2003


I'm trying to determine whether the user is coming to a given page (call it
pageB.php) from the previous page in the sequence (pageA.php) or off-site.

While I can access window.history.length,  i cannot  access a given key in
that array:

"Error: uncaught exception: Permission denied to get property
History.previous"

or

"Error: uncaught exception: Permission denied to call method History.item"

FWIW I'm using php and  while I can determine the
$_SERVER['REQUEST_METHOD'] this technique is not infallible.  Apparently
when you hit "back" (or select from the "Go" menu) some browsers use the
cached version of page -- which means they return  pageA.php and not
pageX.html

Aaaaarrrrgggghhhh!!!!!

Suggestions?

Clyde
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 733 bytes
Desc: not available
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030714/e78a8b06/attachment.bin>


More information about the talk mailing list