Welcome to WebmasterWorld Guest from 54.225.58.238

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

     
12:31 am on Feb 25, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 10, 2003
posts:161
votes: 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)

Inactive Member
Account Expired

 
 


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.

1:13 am on Feb 25, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 10, 2003
posts:161
votes: 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.
3:23 am on Feb 25, 2005 (gmt 0)

Administrator

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

joined:July 24, 2001
posts:15755
votes: 0


remember that on your home pc you have the client and the server operating on the same machine, it changes the actual environment.
12:05 pm on Feb 25, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 10, 2003
posts:161
votes: 0


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