TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-03-2009, 09:59 AM   #1 (permalink)
WebDev'n Beer Drnkn' Fool
 
stewart's Avatar
 
Join Date: Dec 2007
Location: Denver, CO
Posts: 59
Thanks: 2
stewart is on a distinguished road
Default Another hairpulling early morning...

Alright guys, I'm having another dud of a brain moment here..

PHP Code:
<?php

setcookie
('iHateCookies''anything'time()+3600'/''westgrovevoice.com'0true);
setcookie('iHateCookiesz''anythingz'time()+3600'/'false0true);
setcookie('iHateCookiesg''anythingg'time()+3600'/'''0);
setcookie('iHateCookieso''anythingo'time()+3600'/'''0true);

print(
'<pre>'); print_r($_COOKIE); die('</pre>');

?>
Very simple.. right ? Well apparently not. For testing purposes here I'm just trying to set a simple cookie a few different ways with different arguments.

Firefox , cookies get set just fine, great and dandy no problem.

Every other browser under the sun ? (IE, Opera, Chrome, Safari) Nope. Nothing.

I figured someone else has had this *very* simple problem before. There has to be something quite small that I am missing here. I've tried on both localhost, my own personal server and my clients who I am (attempting..) to do this for.

Probably on the same level as my not selecting the correct database the other night in my other post in the MySQL section, but any suggestions would be greatly appreciated.

I'm off to bed though before my head explodes...


Thanks again guys!

Edit:
For some insight..
http://westgrovevoice.com/cookietest.php clients server
http://iamstewart.com/cookietest.php my server

(have to refresh the page at least once to get them to show up btw..)

My other thought is maybe local cookie settings, but wtf mate >.<
__________________
stewart::howe
Web Developer & Programmer
CelerMedia.Com | iAmStewart.com | CelerLabs.com
Send a message via ICQ to stewart Send a message via AIM to stewart Send a message via MSN to stewart Send a message via Yahoo to stewart
stewart is offline  
Reply With Quote
Old 04-03-2009, 10:09 AM   #2 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

seems to work for me
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
'morning all Dingdong Member Introductions 6 01-05-2009 04:52 AM
Good Morning! richardm Member Introductions 7 02-21-2008 03:34 PM
Good Morning all =] godsdead Member Introductions 7 02-05-2008 11:24 AM


All times are GMT. The time now is 06:13 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design