Jump to content

[SOLVED] Global Array at Application level


Hasti

Recommended Posts

Hello Everyone

    I want to make global array at application level without using session. Once the application execution begins first time data comes from database and stored in array then next everytime data should be loaded from array instead of database.

 

    Thanks in advance

 

Regard

Hastimal Shah

Link to comment
Share on other sites

If not storing in the session then where do you plan to store the data from the array after the first access from the db? It has to go somewhere.  I guess if you really wanted to you could maybe store it with a cookie but thats probably a bad idea for security reasons.

Link to comment
Share on other sites

Uhmmm....  If the array is too big to fit in a session, what in the world is the data?  Do you use all of the data each page load?

 

 

By the way, HTTP is stateless, so unless you use cookies (which have an 8kB or something limit), sessions are your only option.

 

 

 

Edit:  Hrmm... Well, actually you could probably get around using sessions....  For example, you could use something like memcached.  But that would essentially be sessions.

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.