php - codeigniter destroying session after adding ckeditor latex code in cart -


i working on codeigniter project of online exams. creating optional question bank. adding multiple options single ck editor in after creating option inserting option in codeigniter cart. option html of ck editor.

but when using latex equation in ckeditor option, logging out. destroying user login session. normal html works fine. overcome problem?

 <script> var option_html=ckeditor.instances['option'].getdata() $.post(base_url+"question_bank/questions/add_option",         {option_html:option_html,is_correct:is_correct}         ,          function(data)           {              //code           }         ); </script>  php code $data = array(                        'id'      => uniqid(),                        'qty'     => 1,                        'price'   => "1",                        'name'    => $is_correct,                         'options' => array('type' => 'question_option',                                             'option_id'=>'',                                           'option_html' => $option_html)                     );                  $this->cart->insert($data); 

i got answer there no problem of cookie size. change value of product_name_rules in cart '[:print:]'; change config use database session open ckedior/plugins/eqneditor/dialogs/eqneditor.js , remove statement a.setattribute('alt')


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -