mkosmosports Posted September 19, 2007 Share Posted September 19, 2007 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. Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 19, 2007 Share Posted September 19, 2007 If it's the same for every user just define it in a config file that you include on all pages. Quote Link to comment Share on other sites More sharing options...
mkosmosports Posted September 19, 2007 Author Share Posted September 19, 2007 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.