homepage Welcome to WebmasterWorld Guest from 54.242.188.217
register, login, search, subscribe, help, library, PubCon, 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 & eelixduppy & jatar k

PHP Server Side Scripting Forum

    
set get COOKIE
nick patrick




msg:3846917
 2:51 am on Feb 11, 2009 (gmt 0)

how to set and get COOKIE on a single php file
i am doing some thing like
setcookie('test',test,time() + (100),"/",'.example.com');
$test =$_COOKIE['test'];
echo $test;

but not worked and after refreshing one time its works any idea plz

 

coopster




msg:3847167
 1:12 pm on Feb 11, 2009 (gmt 0)

A quick search will turn up some answers for you ...

How can I test whether the browser accepts cookies in php? [webmasterworld.com]
PHP cookie on first page access [webmasterworld.com]

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
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved