Advertisement
Guest User

session set code

a guest
Feb 29th, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1.             if($this->input->post('ajax')) {
  2.  
  3.                 $uploaded_image_ids = $this->Site_model->save_from_url();
  4.                 $uploaded_image_id = $this->Site_model->get_last();
  5.  
  6.                 $values = array(
  7.                 'image_id' => $uploaded_image_id,
  8.                 'session_id' => $this->session->set_userdata('session_id')
  9.                 );
  10.                 $this->session->set_userdata('edit', $values);
  11.                
  12.                 echo $uploaded_image_ids[0];
  13.  
  14.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement