title: php: pass large arrays of data through pages
body: <p>I am trying to to solve a problem where I need to pass large arrays of data to another page, this is my scenario:</p>
  
  <p>The user input his/her gmail login information inside a form, I then send this information to an ajax page where i authenticate and fetch all the contacts, if the login is invalid they can try again but if it authenticated I need to send them to the next page where I parse all the emails and check if they match any users on the site.</p>
  
  <p>Method 1 (didn't work):</p>
  
  <p>Store all the data inside a session, this only work if the array is small as there is a size limit for the sessions.</p>
  
  <p>Method 2 (didn't work):</p>
  
  <p>Add an hidden input with javascript and then submit the form (also with javascript).
  As it turns out you can't submit the form and return true (change page) unless the user triggers the event.</p>
  
  <p>So how should I go on, should I just skip the ajax authentication and send them back to the previous page if it didn't work or is there some workaround to my problem?</p>