Welcome Guest, Not a member yet? Register   Sign In
Flash Data causes IE to balk
#1

[eluser]bretticus[/eluser]
To my great surprise, I have found that after setting flash data cookies and then redirecting, IE will turn up a "IE Cannot display the webpage" error (friendly messages are off.) Looking at the headers in IE, IE does not even attempt to load the page indicated by "Location:" in the header.

Anyone else have this issue? Can you give me some IE insight perhaps? This is how the headers look in IE:

(ci_session keys shortened for brevity.)

Quote:HTTP/1.1 302 Found
Date: Wed, 02 Sep 2009 17:11:28 GMT
Server: Apache
X-Powered-By: PHP/5.2.6
Set-Cookie: ci_session=VzUMOFQ7VmQNAIgCTRaKQ==; expires=Wed, 02-Sep-2009 19:11:29 GMT; path=/
Set-Cookie: ci_session=UTMOOgBvBrV2oNfg==; expires=Wed, 02-Sep-2009 19:11:31 GMT; path=/
Set-Cookie: ci_session=UTNdaQFuUWNX4Acw==; expires=Wed, 02-Sep-2009 19:11:31 GMT; path=/
Set-Cookie: ci_session=B2UPO1E+BjRcg==; expires=Wed, 02-Sep-2009 19:11:31 GMT; path=/
Set-Cookie: ci_session=C2lYbFA%2NFJwOfQ==; expires=Wed, 02-Sep-2009 19:11:31 GMT; path=/
Location: http://www.dixiecenter.com/shopping/shop...ut_success
X-ProcessTime: D=3154187
X-NodeName: custweb02
Content-Length: 0
Keep-Alive: timeout=100, max=84
Connection: Keep-Alive
Content-Type: text/html

This works fine in firefox or any other browser (of course.) Here's my headers in FF (number of cookies isn't consistent. Sample data only.)

Quote:HTTP/1.x 302 Found
Date: Wed, 02 Sep 2009 17:24:24 GMT
Server: Apache/2.0.59 (Unix) PHP/5.2.6 DAV/2
X-Powered-By: PHP/5.2.6
Set-Cookie: ci_session=nmqohY4HUxzM0oGC8qp98bgUBrW6; expires=Wed, 02-Sep-2009 19:24:25 GMT; path=/
Set-Cookie: ci_session=QfhDBLwIURtY5aZ4N31Fkv; expires=Wed, 02-Sep-2009 19:24:25 GMT; path=/
Set-Cookie: ci_session=Zt0HJv4/ltnwM; expires=Wed, 02-Sep-2009 19:24:25 GMT; path=/
Set-Cookie: ci_session=yFRjAL5sAT3/hjv; expires=Wed, 02-Sep-2009 19:24:26 GMT; path=/
Location: http://dixiecenter.home/shopping/shop/checkout_success
Content-Length: 0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html

There seems to be a cookie set for every item of flash data. Does IE balk if there are "too many" cookies?

Here's my code:

Code:
//store order info for success page
$this->session->set_flashdata('order_id', $order_id); //int

//store cart_info for success page
$this->session->set_flashdata('cart_info', $cart_info); //array

//store billing information for success page
$this->session->set_flashdata('tax', $tax);
$this->session->set_flashdata('bill_first', $bill_first);
$this->session->set_flashdata('bill_last', $bill_last);
$this->session->set_flashdata('bill_address', $bill_address);
$this->session->set_flashdata('bill_city', $bill_city);
$this->session->set_flashdata('bill_state', $bill_state);
$this->session->set_flashdata('bill_zip', $bill_zip);
$this->session->set_flashdata('sub_total', $sub_total);
$this->session->set_flashdata('total', $total);
$this->session->set_flashdata('cc_card', truncate_card(card_number_clean($cardnum)));
if ( !empty($vendor_data) && is_array($vendor_data) && count($vendor_data) >= 2 )
    $this->session->set_flashdata('company', $vendor_data[1]['Company']);
else
    $this->session->set_flashdata('company', '');

//redirect('shop/checkout_success/' . $order_id);
log_message('debug', 'flash data set, redirecting');
redirect('shop/checkout_success');


Messages In This Thread
Flash Data causes IE to balk - by El Forum - 09-02-2009, 11:39 AM
Flash Data causes IE to balk - by El Forum - 09-02-2009, 12:27 PM
Flash Data causes IE to balk - by El Forum - 09-03-2009, 07:08 AM
Flash Data causes IE to balk - by El Forum - 09-03-2009, 07:37 AM
Flash Data causes IE to balk - by El Forum - 09-03-2009, 07:42 AM
Flash Data causes IE to balk - by El Forum - 09-03-2009, 10:31 AM
Flash Data causes IE to balk - by El Forum - 09-03-2009, 10:35 AM
Flash Data causes IE to balk - by El Forum - 09-15-2009, 03:55 PM
Flash Data causes IE to balk - by El Forum - 09-15-2009, 04:23 PM
Flash Data causes IE to balk - by El Forum - 09-15-2009, 04:45 PM
Flash Data causes IE to balk - by El Forum - 09-15-2009, 05:31 PM
Flash Data causes IE to balk - by El Forum - 09-15-2009, 11:09 PM
Flash Data causes IE to balk - by El Forum - 09-16-2009, 12:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB