homepage Welcome to WebmasterWorld Guest from 23.22.173.58
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
set get COOKIE
nick patrick

5+ Year Member



 
Msg#: 3846915 posted 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

WebmasterWorld Administrator coopster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3846915 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved