Jump to content

My code and drupal and IE7


elhelaly1999

Recommended Posts

I make a block contain that code

<?php
session_start();
if($_SERVER['HTTP_REFERER'] == 'http://example.com/')
{
$_SESSION['test'] = 'ok';
include('bar.html');
}
elseif($_SESSION['test'] == 'ok')
{
include('bar.html');
}
?>

it works fine on firefox but not working on IE7

I want to know where is the error ? 

Link to comment
https://forums.phpfreaks.com/topic/117118-my-code-and-drupal-and-ie7/
Share on other sites

possibly. I believe the problem is more likely to be from this line...

if($_SERVER['HTTP_REFERER'] == 'http://example.com/')

 

I'm not certain as to how effective and accurate $_SERVER['HTTP_REFERE'] is. I have tried using it for similar things in the past but without success, I found a free script to grab the URL and that has been working fine ever since.

 

It is quite possible the frames are what are messing everything up.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.