Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-11-2004, 12:21 AM   #1
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-11-2004, 12:39 AM   #2
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
it is BEFORE any HTML...

and other cookies from other sites are coming through, n' this shit still isn't working.
galleryseek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-11-2004, 12:40 AM   #3
sacX
Confirmed User
 
Join Date: Dec 2002
Location: New Zealand
Posts: 2,998
I use this and it works fine..perhaps you have to set an expiry ?


$time = time();
setcookie ("cookie_data",$cookie_string, $time+604800000);
__________________
Have Asian Language Traffic?
sacX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-11-2004, 12:48 AM   #4
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
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 ;)
galleryseek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-11-2004, 12:51 AM   #5
sacX
Confirmed User
 
Join Date: Dec 2002
Location: New Zealand
Posts: 2,998
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 ;)
__________________
Have Asian Language Traffic?
sacX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.