Jump to content

storing data per session?


gibbonuk

Recommended Posts

Hi, just wanted to know what the best mothod is.

 

In my php app, when the user "logs in" it drags some parameters out of a mysql database based on the user. These parameters will then be used in calculations on that page which is refreshed alot.

 

So, immidiatly i realise once the user is logged in, and the parameters are retrived, each time the page is releaded it will do that all over again, which is what i want, but also want a "fast" user experience and wondered if there would be a better way to store the parameters for that session rather than having to keep running an sql query and pulling them out, storing them back into arrays etc?

 

Sould they be put into a session?

The parameters arnt alot, 3 columns each with 16 params, resulting in 3 arrays of 16 parts.

 

Thanks

Andy

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.