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.
Any alternate for session variables?
Moderator: General Moderators
-
timhortons
- Forum Commoner
- Posts: 29
- Joined: Thu Jan 15, 2004 11:48 am
- Location: Calgary, AB, Canada
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