guys i want some way to store the data generated by some function of class and later on when next request is made to some other function of same class i should be able to access that stored data, basically i am doing this to save the database query repeatedly for same data.
my project is in codeigniter.
My module works as :
1.Generate list of users from table1 and show it to client on front end..(Here i want to store users name and other data in some way like cache or something).
2.Client on front-end will select among those users and insert those users details to table2 in DB.
So basically while entering there data to table2 i dont want again to query Table1 and get there details for inserting ..
I m looking for some caching or store data in some global way..also storing data in hidden fields would be bad idea because size of data would be huge and post may create issue if it exceeds max post size.
If there would be some variable from were i can fetch the old stored data and insert it directly into Table2.
this is what i thought initially but didnt got luck with it: global variable in php codeigniter