Variable and/or constants are available til the script ends.
What do you mean by: "...which is availabe in multiple scripts..." ?
If you mean scripts in different pages, you can use sessions.
i think its because there are tons of those on the internet... people are just too lazy to search a little...
But sure, gesf: do it, come on, just do it!
Plus the best tutorial would be about managing database-stored sessions..hehe
I still don't see the use in sessions -.-
I just have a cookie that stores an ID, and gets info from the database with that id and store it into an array...
well..its exactly what clode wanted: sessions are available in multiple scripts without redefining them..that will allow passing variables from script to script..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.