GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   ah fucking php, this setcookie shit isn't working... (https://gfy.com/showthread.php?t=234447)

galleryseek 02-11-2004 12:21 AM

ah fucking php, this setcookie shit isn't working...
 
<?
setcookie("username", "chris");
?>

obviously the EASIEST form to use setcookie in.. .and it isn't setting the cookie. i'm no experienced coder by far, but what the fuck? i must be missing something here.

n' no i dont have cookies turned off.

i'm sure it is something im doing that is extremely stupid, and i'll admit my ignorance if i am doin somethin stupid..

help?

galleryseek 02-11-2004 12:39 AM

it is BEFORE any HTML...

and other cookies from other sites are coming through, n' this shit still isn't working.

sacX 02-11-2004 12:40 AM

I use this and it works fine..perhaps you have to set an expiry ?


$time = time();
setcookie ("cookie_data",$cookie_string, $time+604800000);

galleryseek 02-11-2004 12:48 AM

Quote:

Originally posted by sacX
I use this and it works fine..perhaps you have to set an expiry ?


$time = time();
setcookie ("cookie_data",$cookie_string, $time+604800000);

yeah that worked.. but what is fucked up is i used that same exact coding.. but at that time, the coding was after some html so it didn't work..


thx ;)

sacX 02-11-2004 12:51 AM

Quote:

Originally posted by galleryseek

yeah that worked.. but what is fucked up is i used that same exact coding.. but at that time, the coding was after some html so it didn't work..
thx ;)

:)


All times are GMT -7. The time now is 08:59 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123