Welcome Guest, Not a member yet? Register   Sign In
Is there a maximum lenght in falshdata?
#1

[eluser]DocFunky![/eluser]
The reason why I'm asking that is I'm becoming mad about a small stupid message I'd like to pass to the next view. So if I do :

Code:
if(!$this->paypal_pro->APICallSuccessful($PayPalResult['ACK']))
      {
       var_dump($PayPalResult['ERRORS']);
       $message=array();
       foreach ($PayPalResult['ERRORS'] as $row => $error){
        // $message['flashError'][$row]['L_SHORTMESSAGE'] = $error['L_SHORTMESSAGE'];
        $message['flashError'][$row]['test'] = "The Session class permits you maintain a user's";
        // $message['flashError'][$row]['L_ERRORCODE'] = $error['L_ERRORCODE'];
        // $message['flashError'][$row]['L_LONGMESSAGE'] = $error['L_LONGMESSAGE'];
       }
       // print_r($message);
       $this->session->set_flashdata($message);
      
       redirect('main/Form');
      }

It works great, but if I do :

Code:
if(!$this->paypal_pro->APICallSuccessful($PayPalResult['ACK']))
  {
   var_dump($PayPalResult['ERRORS']);
   $message=array();
   foreach ($PayPalResult['ERRORS'] as $row => $error){
    // $message['flashError'][$row]['L_SHORTMESSAGE'] = $error['L_SHORTMESSAGE'];
    $message['flashError'][$row]['test'] = "The Session class permits you maintain a user's  and track their activity while";
    // $message['flashError'][$row]['L_ERRORCODE'] = $error['L_ERRORCODE'];
    // $message['flashError'][$row]['L_LONGMESSAGE'] = $error['L_LONGMESSAGE'];
   }
   // print_r($message);
   $this->session->set_flashdata($message);
  
   redirect('main/Form');
  }
It doesn't work.

I'm showing the falshdata here, in main/form :

Code:
<?php if($this->session->flashdata('flashError')):?>
      <div class='flashError'>
     &lt;?php  
      print_r($this->session->flashdata('flashError'));
     ?&gt;
      </div>
     &lt;?php endif?&gt;
You can guess I'm trying to pull the error messages of Payal to the view for my errors Handling.
Thanks
#2

[eluser]WanWizard[/eluser]
There is no maximum linked to flashdata.

But there is a maximum for total session storage, which depends on the storage backend you have selected.

If you're using cookies for your session, the maximum cookie size is 4Kb. But because of the encryption overhead, you can store less then 4Kb of session data.

If you're using the database, then the size is limited by the column type you have selected for the "user_data" column. By default (as documented) the type is "TEXT" which gives you 64Kb (minus 2 bytes). You can enlarge it using other data types (see http://dev.mysql.com/doc/refman/5.5/en/s...ments.html).




Theme © iAndrew 2016 - Forum software by © MyBB