Mangesh Sathe
Mangesh Sathe

Reputation: 2177

Codeigniter session discard some data after certain limit is reached

I have 6 forms which are divided in steps for eg. Step 1

Next button : click here to go Step 2

Next button : click here to go Step 3

. . .

Next button : Last Step 6 "Finish button"

I save all form data in following manner from form 1 to form 6 (I dont want to use database for storing session data at all, i will write session data to db tables when user completes step 6 and click on button "Finish")

$form_data_step_1_to_6 = array(
                   'username'  => 'johndoe',
                   'email'     => '[email protected]',
                   'logged_in' => TRUE
               );

$this->session->set_userdata($form_data_step_1_to_6);

Codeigniter session discards form data after form4, Session data in incomplete. Is there any way i can store large amout of data in codeigniter session without using database?

Upvotes: 1

Views: 231

Answers (1)

user2503896
user2503896

Reputation:

are you using ajax to store data in session/ if yes then its not session size limit issue. then its session expire time issue.

Upvotes: 1

Related Questions