homepage Welcome to WebmasterWorld Guest from 50.17.107.233
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Is it possible to use ENV variables instead of cookies?
When visitor's browser has cookies disabled
GreenLeaf




msg:1301213
 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




msg:1301214
 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




msg:1301215
 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




msg:1301216
 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




msg:1301217
 12:05 pm on Feb 25, 2005 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved