Welcome to WebmasterWorld Guest from 54.144.77.26

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

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)

10+ Year Member



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)

10+ Year Member



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)

10+ Year Member



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)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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)

10+ Year Member



Thanks a lot.
I understood that it's a wrong approach.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month