Jump to content

Archived

This topic is now archived and is closed to further replies.

jeremiorama

Variables

Recommended Posts

Hi there,

I was wondering about something: is there another way besides cookies, session variable (which are cookies as well) and database to save a value throughout the scope of the user's surf on the web site? I'm wondering if there could be a use of global variables that would be saved on the server but I don't think it would work.

Also, I wanted to know if session variables are a good use of PHP?

Thanks a lot,

-Jeremiorama

Share this post


Link to post
Share on other sites
you can pass information using the $_GET and $_POST arrays, with links and/or forms. Or you can store information in like, a text file and open/read it on each page... other than that.. umm.. why? Do you have some sort of limitation imposed upon you, or something?

Share this post


Link to post
Share on other sites
Hey,

Well I was just wondering about all the possibilities. So using session variables would be alright then, and a better structured way of doing things, right?

Thanks,

-Jeremiorama

Share this post


Link to post
Share on other sites

×

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.