Any alternate for session variables?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
shwathi
Forum Newbie
Posts: 6
Joined: Mon Mar 15, 2004 12:29 am
Contact:

Any alternate for session variables?

Post by shwathi »

I have a main php page.
There are 10 links from this page to other php pages.
I need to have about 10 variables(containers) in main page such that,
after returning from a sub page, the value retrieved from the sub page is stored in one variable and also that the so far retrieved values from other pages stay alive.
[ Each value is a code from DB about 10K ]
Is it advisable to have session variables for such cases?
If not, what concept of php can be implemented?
What is the maximum storage (size) limit of session variables?

Thanks.
Shwathi.
ericng0311
Forum Newbie
Posts: 4
Joined: Fri Mar 12, 2004 7:06 pm
Location: BC, Canada

Post by ericng0311 »

Hi Shwathi,

rather than calling the whole 10K of data from the database and store in the session, may be it's better to store just the index value of the data in the session, and have the main page retrieve actual 10k data from the database.

Hope this help

Eric
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

locking this thread. please do not cross/duplicate post.
Locked