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
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 06-14-2003, 03:45 PM   #1
Nima
Confirmed User
 
Join Date: Feb 2003
Posts: 2,192
need a cookie script in php

Hi
I need a cookie script done in php on hwich I can set it to expire at any given time.

Let me know if you can do this or know a website that has the code

ICQ 63125103

thanks
Nima is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2003, 03:47 PM   #2
MrPopup
Confirmed User
 
Join Date: Aug 2002
Location: on the internet
Posts: 3,783
http://www.devshed.com/Server_Side/P...ics/page4.html
__________________
<table cellspacing="0" cellpadding="3" border="1" bgcolor="#008000"><tr><td><font size=3>Gone</font></td></tr></table>
MrPopup is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2003, 04:00 PM   #3
Tipsy
Confirmed User
 
Join Date: Jul 2001
Location: See sig
Posts: 6,989
I have a good cookie recipe if that helps?
__________________
Ignorance is never bliss.
Tipsy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2003, 04:01 PM   #4
Nima
Confirmed User
 
Join Date: Feb 2003
Posts: 2,192
thanks for that link but i need one wihtout the use of mysql
Nima is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2003, 04:02 PM   #5
Nima
Confirmed User
 
Join Date: Feb 2003
Posts: 2,192
Quote:
Originally posted by Tipsy
I have a good cookie recipe if that helps?
no sorry that won't cut it
Nima is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2003, 04:03 PM   #6
Tipsy
Confirmed User
 
Join Date: Jul 2001
Location: See sig
Posts: 6,989
Quote:
Originally posted by Nezster
thanks for that link but i need one wihtout the use of mysql
You've not been too specific. Setting and retrieving a cookie is pretty simple. It depends more on what you want to do with it.
__________________
Ignorance is never bliss.
Tipsy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2003, 04:15 PM   #7
Nima
Confirmed User
 
Join Date: Feb 2003
Posts: 2,192
Basically I am iframing an active-x dialer code on one of my CJs and I want it to only show once every 24 hours to the same person.
Nima is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2003, 04:23 PM   #8
vending_machine
Confirmed User
 
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
Quote:
Originally posted by Nezster
Basically I am iframing an active-x dialer code on one of my CJs and I want it to only show once every 24 hours to the same person.
Setting a cookie that lasts 24 hours:
Code:
&lt;?PHP
setcookie(
'COOKIE_NAME',
'COOKIE_CONTENT',
time( ) + 86400,
'/',
$_SERVER[ 'SERVER_NAME' ] );
?&gt;

To check for the cookie:
Code:
&lt;?PHP
if ( $_COOKIE[ 'COOKIE_NAME' ] )
{
// then blah
}
?&gt;
vending_machine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2003, 04:24 PM   #9
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
contact me ;)
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2003, 04:24 PM   #10
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
or just goto php.net and search for setcookie in the function list.
foe 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



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.