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

Post Reply
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.
timhortons
Forum Commoner
Posts: 29
Joined: Thu Jan 15, 2004 11:48 am
Location: Calgary, AB, Canada

Post by timhortons »

I only know of $_GET and $_SESSION variables in PHP. for this, i'd suggest sticking to session variables as they're more or less hidden from the user. I dont know about any other methods to do that in a simple way. However, you could stick in database use and write/read values to and from a table when you need information, but that's probably slower and cluttered compared to sessions.
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

why do you have two topics of the exact same question??
Post Reply