Page 1 of 1
need help: global variable
Posted: Mon Jul 02, 2007 8:33 am
by Lixas
I'm looking for the way, how to create and set variable that would be global in all server, like $_SESSION is variable for one user, but i need that this variable would be accessible from all sessions. Is there any way to reach this by using PHP or apache functions? I hope you get what i want to do. Please help me to find the way how to handle this.
Posted: Thu Jul 05, 2007 7:21 pm
by barnes
I ran into this same issue. I'd love to hear someones solution.
Posted: Mon Jul 16, 2007 8:19 pm
by Flipper3
Well, you could try setting a cookie and reading it from every page on that domain. I really don't know any other way, sorry.

Posted: Tue Jul 17, 2007 12:24 pm
by Lixas
no, it will not work
Posted: Wed Jul 25, 2007 7:28 am
by Lixas
at last, i have found an idea how to do it

i have thought that database is used in all sessions, the same is with files. so, the decision for my problem could be some kind of flat file database

Here is the script that i have found on the net
-=CLOSED=-