Current location: Hot Scripts Forums » Programming Languages » PHP » Cookie Help


Cookie Help

Reply
  #1 (permalink)  
Old 06-19-05, 11:27 PM
connor connor is offline
Wannabe Coder
 
Join Date: Apr 2005
Location: Knob Noster, Mo
Posts: 228
Thanks: 1
Thanked 0 Times in 0 Posts
Exclamation Cookie Help

put_cookie("xmbuser", "'.$username.'", now, "'.$cookiepath.'", "'.$cookiedomain.'");

I need to help to call cookie "xmbuser" I tried if($_COOKIE[xmbuser]){ but it didn't work can I get help?
Reply With Quote
  #2 (permalink)  
Old 06-19-05, 11:46 PM
DetroitGuy DetroitGuy is offline
Newbie Coder
 
Join Date: Jun 2005
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
setcookie(name, value, expire, path, domain);

Call it with:

<?php
if (isset($_COOKIE["name"]))
commands here
else
cookie not set commands
?>
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookie problem Tempestshade PHP 5 06-14-05 05:37 AM
Setting a cooke (time it expires) mcrob PHP 4 04-27-05 12:13 PM
Passing info between pages w/ URL HairySpider JavaScript 6 01-09-05 08:47 AM
delete cookie prenaud JavaScript 0 07-28-04 10:28 AM
How to retrieve a cookie from webpage? z94joma Windows .NET Programming 0 03-07-04 08:37 AM


All times are GMT -5. The time now is 06:50 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.