Page 1 of 1

Any alternate for session variables?

Posted: Mon Mar 15, 2004 9:13 pm
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.

Posted: Mon Mar 15, 2004 9:51 pm
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.

Posted: Mon Mar 15, 2004 9:53 pm
by Illusionist
why do you have two topics of the exact same question??