Jump to content


Photo

Alterar Valor Do Cookie


  • Faça o login para participar
6 replies to this topic

#1 hostdesigner

hostdesigner

    Super Veterano

  • Usuários
  • 2910 posts
  • Sexo:Masculino
  • Localidade:Quirinópolis-GO
  • Interesses:Programação, Mulheres, Diversão, Mulheres, Música, Mulheres, Meu Carro, Mais mulheres, Internet, Outras Mulheres, Quase por último PAZ e por ultimo Outras Váááárias Mulheres...

Posted 19/06/2006, 22:04

Estou tentando fazer um sisteminha onde toda vez que o usuario visitar a página X o cookie "visita" que possui o numero de visitas que este usuário fez ao site, seja atualizado incrementando o valor do cookie a cada nova visita a pagina...

Mas tentei aqui e não consegui li o manual mas só encontrei informações sobre SetCookie() mas nenhuma informação sobre como atualizar o valor de um cookie já existente.

eu fiz assim o exemplo:

<?PHP
//só para teste da criação do cookie eu fiz assim
if($_GET["t"] == "t"){
setcookie("visita", "0", time()+43200, "/", ".site.com");
}



setcookie("visita", "1", time()+43200, "/", ".site.com");

?>



Falopa!

#2 Felipe Pena

Felipe Pena

    O temor do Senhor é o princípio da sabedoria

  • Ex-Admins
  • 6441 posts
  • Sexo:Masculino

Posted 19/06/2006, 23:13

Uma idéia...

<?php

	if (empty($_COOKIE['foo'])) {
	
		$expire = time() + (3600 * 24);

		setcookie('foo',	  '1', $expire);
		setcookie('time', $expire, $expire);
		
	} else {

		// Incrementar o tempo de vida
		$expire = $_COOKIE['time'] + (3600 * 24);

		setcookie('foo' ,	 '1', $expire);
		setcookie('time', $expire, $expire);
		
	}

	
	print $_COOKIE['foo'];
	print $_COOKIE['time'];

?>

Felipe Pena
[...] ó terra, terra, terra; ouve a palavra do Senhor. — Jeremias 22:29

#3 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 13822 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 17/10/2017, 20:35

Wirkung Viagra Frau El Cialis Generico Acheter Du Propecia France viagra Online Doctor Viagra Child Took Expired Liquid Amoxicillin
Uk Propecia Sales viagra online Amoxicilina In Germany Determining Correct Amoxicillin Dosage Lioresal Vente En Canada
Can You Buy Real Viagra Online Azithromycin Vs Amoxicillin Chlamidia Viagra Prezzo Pfizer viagra Amoxicillin And Birth Control Pills

#4 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 18/10/2017, 01:31

How Can I Last Longer Canadian Drugs No Prescription Lasix Poland viagra Prednisolone Without A Prescription
How To Buy Cialis From Canada viagra Produit Plante Qui Remplace Tadalis Sx Soft Cialis 20 Mg Madrid
Est Priligy Generique Safe farmacie a san marino levitra bayer Kamagra Legal In Uk Donde Comprar Cialis Generico

#5 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 13822 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 18/10/2017, 05:13

Buy Generic Nexium Online No Prescription Pilule Viagra Moin Chere viagra Price Of Priligy
Precio Viagra Con Receta levitra vs viagra vs cialis Propecia Eu Acheter Cytotec Livraison Rapide
Cialis Y Fertilidad buy viagra Acheter Tadalis Sx France Le Viagra Achat
Propecia Discount Merck generic viagra Does Keflex Work Against Mrsa
Cialis Generique Information viagra Roche Xenical Zithromax Loading Dose Propecia Dht
Zoloft Require Prescription In Canada viagra prescription Cialis Kaufen Deutsch Pharmary Online
Cialis Cheap India Amoxicillin Clavulanate Acid generic cialis Amoxicillin Causes Yeast Infection Viagra From Geremy Antabuse Without Prescription

#6 qapedlok

qapedlok

    Expert

  • Usuários
  • 509 posts
  • Sexo:Feminino
  • Localidade:Worcester

Posted 19/10/2017, 07:05

Discounts! best item progect12.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE Vernee Apollo Lite 4G+ Phablet-233.17 $Brazilian virgin hair kinky straight human hair weave bundles 3pcs 8a grade yaki straight hair italian coarse yaki virgin hair ( 154.00 $)Wimbledon Brown Leather and Suede High Top Sneaker ( 79.50 $)Black leather cut-out bootie ( 248.75 $) LoribluHovard, SidniV SShA otec i sin pomogli policii zaderzhat vooruzhennogo grabitelyaMini WiFi 720P Smart IP Camera Home Security System-18.99 $UMi Z 4G Phablet-290.99 $Sunglasses women sun glasses men brand designer summer style vintage steampunk alloy frame round dazzle lens fashion 15 colors ( 2.80 $)Cotton Pet Dog Clothes For Dogs Winter Clothing Dog Costume Sweatshirts Angel Print Coat Apparel Puppy Sports Clothes FEN# ( 3.83 $)Women summer dress 2016 plus size clothing audrey hepburn floral robe retro swing casual 50s vintage rockabilly dresses vestidos ( 47.62 $)18 yanvaryaThree Tone Suede Wedge Sandal ( 172.50 $)12pcs lot 15cm 12colors set waterproof lip liner pencil women s professional long lasting lipliner lips ( 2.99 $)I Can do Anything Womens Necklace ( 168.00 $) 28bb.jpg
Discounts! best products catalogue

progect12.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Eyoyo original 30m professional fishing camera underwater fish finder 7" color monitor 1000tvl hd cam 12pcs white led ( 130.90 $)
Casual style long slightly curled high temperature fiber women's hair extension ( 7.75 $)
70 pcs lot 1 bag diy cute kawaii romantic heart star paper crafts and scrapbooking sticker ( 0.81 $)
2016 summer and autumn genuine leather women's handbag cowhide one shoulder messenger bag for women hot selling leather bags ( 64.80 $)
Elegant faux crystal silvery crossed bikini body chain for women ( 2.21 $)
MERRY'S Fashion Women Titanium Glasses Frames Men Brand Titanium Eyeglasses Gold Shield Frame With Glasses ( 11.62 $)
Ulefone U007 3G Smartphone-54.99 $
Vito Korleone
Luxury crazy horse genuine leather vintage handmade men's brown shoulder briefcases laptop bag large travel bags ( 143.19 $)
Brazilian virgin hair kinky straight human hair weave bundles 3pcs 8a grade yaki straight hair italian coarse yaki virgin hair ( 154.00 $)
Geometric Print Silk Bandana ( 40.00 $)
New bling highlighter sticker all over shimmer highlighting powder creamy texture water proof highlighter contour face ( 1.58 $)
Cosmetic 9 pcsset spray bottle latex bottle cream jars travel split charging containers ( 5.94 $)
Teclast X22 Air 21.5 inch All In One PC-278.32 $
Yanxi factory outlet butterfly patent leather shoulder vintage handbag hard messenger women bag designer handbags high quality ( 28.42 $)


110bb.png

#7 gapedlok

gapedlok

    24 Horas

  • Usuários
  • 425 posts
  • Sexo:Feminino
  • Localidade:Albufeira

Posted 20/10/2017, 09:47

Discounts! best product images progect13.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE Naturalhome 2017 dancing shoes for women jazz sneaker new salsa dance sneakers for woman ballroom dance ( 28.79 $)Full Lace Human Hair Wigs With Baby Hair Remy Lace Front Human Hair Wigs for Black Women Glueless Lace Frontal Natural Hair Wigs ( 88.00 $)Rudder Compass Stainless Steel and Rubber Bracelet ( 178.20 $)7 inch lcd touch monitor video door phone door bell infared night vision camera 4gb sd card recording video intercom doorbell ( 137.64 $)Dome D201 2.7 inches LCD 1440P Super Night Vision Car GPS Recorder 109.00$Brand designer handbag women bags hollow out women messenger bags small vintage shoulder crossbody bag for ( 9.93 $)Extra Spare H101 - 007 Lower Body Shell for Floureon H101 Remote Control Quadcopter ( $1.36 )2pcs Small Arrow 39 LED LED Brake Light Car Logo Light Additional Letter Brake Lights with Suction Cup LED Refit Car Light ( 27.99 $)Fashion fluffy rabbit fur pom pom ball keychain women trinket bag phone key chain ring car ( 0.68 $)T Creative Northern Europe Circualar Pendant Light LOFT Industry Lamp For Bedroom Living Room Restaurant Bar Coffee shop ( 199.00 $)Sexy sweetheart neck color block bodycon women's bandage dress ( 12.20 $)30ml Plastic Container Bottle ( $0.57 )MEIZU M2 Note 4G LTE Phablet ( 129.99 $)Ombre Brazilian Hair Brazilian Straight Hair Brazilian Virgin Hair Straight 3 Bundle Deals Blonde Brazilian Hair Weave Bundles ( 102.00 $)30PCS Fine Jewellery Components Genuine 925 Sterling Silver Handmade Beadings Findings Earring Hooks Leverback Earwire Fittings ( 2.86 $) 39.jpg
Discounts! makeup favorites 2017

progect13.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
High quality 8a grade mongolian virgin human hair afro kinky curly 4a 4b 4c hair lace front wig full lace wig u part wig ( 114.48 $)
8a peruvian virgin hair with closure human hair bundles with lace closures top peruvian hair peruvian straight hair with closure ( 25.00 $)
Discount 2016 new fashion summer t shirt men o neck cotton comfortable t shirt casual tshirt ( 11.28 $)
Dark Gray Nylon Puffer Bow Tie ( 31.50 $)
V20D 0.36 inch 3 Digit LED Digital Voltmeter Module for DIY Projects ( DC 0 - 100V ) ( $2.30 )
Frisky tame 10 pcs bdsm bondage set leather fetish adult games sex toys for couples slave game sm product erotic toys handcuffs ( 22.28 $)
2PCS 7 - 19mm Socket / Drill Set ( $9.73 )
Blue and yellow plaid cotton slim fit mens shirt ( 50.82 $) Forzieri
Top Quality Brazilian Virgin Human Straight Hair 4x4 Lace Closure 3 Way Part Bleached Knots Free Middle Three Part Free Shipping ( 68.18 $)
Car jump starter vehicle auto engine booster emergency start battery portable charger power bank with 2 usb ports 3 led light ( 64.58 $)
Fashionable peep toe and platform design women's sandals ( 32.79 $)
Men's fashion round neck golden wing print short sleeves t-shirt ( 14.10 $)
Vortice - Turquoise Swirling Murano Glass Heart Earrings ( 59.00 $)
Kerui iosandroid app lcd spanishrussianenglish gsm burglar voice sms wireless control home water leak sensor alarm auto dial ( 103.85 $)
10ml hot sell nail gel top coat top it off base coat foundation for uv gel ( 2.46 $)


103.png
Discounts! recommended makeup products

progect13.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
2XL New Brand Spring Summer Plus Size Women Print Floral Vest Dress Sleeveless A Line Party Fashion Dresses Vestido De Festa Hot ( 7.94 $)
Original Youde UD 26ga + Ribbon Kanthal A1 Twisted Wire ( $2.73 )
Byalik, Maim
ORDRO SW25 Smartwatch Phone-54.15 $
Classica - Mens Orange Calfskin Billfold Wallet ( 144.00 $)
It Musical Jewelry Box ( 140.00 $)
Mens Beige Perforated Leather Belt ( 135.00 $)
Large dog clothes coat hoodies clothing for dog big size spring warm hoodie apparel sportswear perros ( 4.33 $)
Cuore l hammered leather crossbody bag ( 164.76 $) Furla
Fifth Harmony — That /s My Girl (Live at FunPopFun Festival)
2016 makeup foundation sponge blender blending cosmetic puff flawless powder smooth beauty make up tools set ( 0.49 $)
2016 Women Sexy Lingerie Hot Leopard Costumes Night Dress Deep V-Neck Babydoll Erotic Lingerie Female Clothes Exotic Apparel 45 ( 10.89 $)
New Autumn Winter Pyjamas Women Pajama Sets Cartoon nightgown for women female girl O-Neck Long Sleeve Sleepwear free shipping ( 5.60 $)
Brazilian virgin hair with closure,3 bundles with 1pc lace closure,4pcs virgin human hair weave brazilian body wave with closure ( 97.53 $)
Bohemian women's spaghetti strap flounce print tie sleeveless jumpsuit ( 23.40 $)


134bb.jpg
Discounts! nest products 2017

progect13.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
JJRC Q1 RC Climbing Vehicles Infrared Creeping Car Gift for Kids-15.29 $
DECAKER Miniature Laser Engraver 500mW DIY Printer 101.79$
8A Mink Brazilian Virgin Hair Straight 4 Bundles Queen Hair Products Unprocessed Brazilian Straight Human Hair Weave Bundles ( 73.50 $)
See-through sexy style cut out slimming women's pantyhose ( 6.43 $)
Original Xiaomi Wireless Bluetooth 4.0 Speaker ( 19.99 $)
West end storm grey leather small bauletto ( 438.65 $) Marc Jacobs
Xiaomi Mi5s 4G Smartphone ( 410.24 $)
UMI Super 5.5 inch 2.5D Arc Screen Android 6.0 4G Phablet Helio P10 64bit Octa Core 2.0GHz 13.0MP Rear Camera 4GB RAM 32GB ROM Type-C Accelerometer Compass Fingerprint Scanner HiFi 216.39$
True freesia bulbs,flower freesia,Indoor Pot Flowers Orchids,Freesia Rhizome flower bulbs,Floral quiet home garden plant-2bulbs ( 1.66 $)
Stylish round collar 34 sleeve abstract figure print plus size women's dress ( 15.00 $)
Parks, Larri
FIEDORA Smart RC Bluetooth Selfie Dock-196.14 $
Original Xiaomi Mi Robot Vacuum-359.99 $
Valar Morgulis
FEILUN FX122C6 WiFi FPV 4 Channel RC Quadcopter with HD Camera 102.99$


141bb.jpg
Discounts! hottest beauty products

progect13.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Fashion wedding rings for women white gold plated cz diamond jewelry ring vintage bague female infinity ( 3.71 $)
Refreshing turn-down collar purfled fitted men's short sleeves polo t-shirt ( 14.75 $)
22mm Replacement PC Tank for PICO RTA ( $1.39 )
Bostanten man vertical genuine leather bag men messenger business men's briefcase designer handbags high quality shoulder bags ( 70.99 $)
Cheap stars black basketball shorts quick dry breathable training basket-ball jersey sport running shorts men sportswear ( 10.00 $)
Atomnij akkumulyator 20 let bez zaryadki ustrojstva!
Jinghao nebulizer inhaler adultkit mask for asthma pvc transparent mirror medical piston nebulizer compressor portable jh-102 ( 122.12 $)
Sunborls stylish canvas printing backpack women school bags for teenage girls cute set black backpacks female ( 9.59 $)
Nik Adams
Diy Square Diamond Painting Cross Stitch Diamond Embroidery Scenic Park Benches Pattern Hobbies And Diamond Mosaic Christmas ( 19.80 $)
Gsm android ios app 99 wireless zone lcd smart dislay touch keypad pstn quad band sms home security voice burglar alarm system ( 120.49 $)
5 color outdoor sports quick dry cycling cap headscarf headband bicycle cap men riding bandana pirate ( 4.79 $)
Vavilon-5: Zateryannie skazaniya
1pc car back rear trunk seat elastic string net mesh storage bag pocket cage ( 3.31 $)
Korolevskij mir Game of Thrones


96.png




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq