Is it possible to use ENV variables instead of cookies?
When visitor's browser has cookies disabled
GreenLeaf
12:31 am on Feb 25, 2005 (gmt 0)
Is it possible/good to use ENV variables instead of cookies when visitor's browser has cookies disabled? I.e. if my cookie isn't set i set up an environment variable with putenv and then get its value with getenv. Or it's a bad practice? Thanks in advance.
hiker_jjw
12:34 am on Feb 25, 2005 (gmt 0)
I don't think that'll work.
Just pass the values thru as hidden fields or attach them to the workstring. You can either setup two functions to do this for you, or I believe PHP has an option to add name/value pairs to your URLs.
GreenLeaf
1:13 am on Feb 25, 2005 (gmt 0)
Yes, you are right, this doesn't work on our server but this works on my home pc Apache. Are there any settings which i could set up in order to enable it on our hosting server? Thanks.
jatar_k
3:23 am on Feb 25, 2005 (gmt 0)
remember that on your home pc you have the client and the server operating on the same machine, it changes the actual environment.
GreenLeaf
12:05 pm on Feb 25, 2005 (gmt 0)
Thanks a lot. I understood that it's a wrong approach.