Jump to content

storing data for use across multiple pages...


mkosmosports

Recommended Posts

Hey,

 

I want to store an array on the server for use across multiple pages. I know and have been using sessions, but it just kills me to know that if the user turns cookies off, this is all gonna stop working unless I want that big session id in all urls. Also, the info in this array is by no means specific to each user, its the same for all of them.

 

Is there any alternatives to this? Some way of storing an array which would be accessible by multiple pages?

 

Thanks.

Link to comment
Share on other sites

Hey,

 

I think I explained myself very poorly Jesirose. Here my specific problem:

 

Im trying to show soccer transfers on a per month basis. In the URL theres a year parameter, from which I retrieve all of the transfers for that given year from the db and put it into an md array divided by month. I then use AJAX, so when users choose different months, the page doesnt reload, it just the takes the transfers of the appropriate month from the md array. Ive been using sessions for this array to be accessible for this. But Im wondering if there any alternatives to this?

 

I know I can run queries on a per month basis instead, or maybe even put the yearly transfers in a file, but what about some kind of globally accessible array which would be created on the fly on the server?

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.