PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 26th, 2000, 08:19 AM
falcon falcon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 1999
Location: UK
Posts: 50 falcon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 21 m 33 sec
Reputation Power: 14
Hi,

I am trying to use SetCookie to post information between two domains unfortunetly I can not get it to work on the one yet. I can not get it to work with any other parameters other than the name and value.

Although I am not sure if this workinf correctly. I have spent some time working out whether it works properly or not but only managing to achieve a large pulsating headache.

Nutscape seems to work and IE doesn't. Any ideas would be hugely appreciated.

Falcon

Reply With Quote
  #2  
Old January 26th, 2000, 10:44 AM
timbo timbo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 1999
Location: London
Posts: 110 timbo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 26 sec
Reputation Power: 0
try this

SetCookie("SessionId",$cartID,time()+2592000);

the only bit after that is the path and domain and some secure thing (which I'm not sure about), if you want to include more info like the time or whatever if you repeat the SetCookie with different variables in it and sit will make one big cookie for you

eg

$cartID = md5(uniqid(rand()));
$time = mktime();
SetCookie("SessionId",$cartID,time()+2592000);
SetCookie("SessionIdTime",$time,time()+2592000);

will generate this as a cookie...

SessionIdTime
948815550
whatever URL and path/
0
667529984
29327071
381841344
29321036
*
SessionId
735f83820533a26431f2817140b878d0
whatever URL and path/
0
667529984
29327071
382041344
29321036
*

you cvan then call either SessionId or SessionIdTime in your next page

hope it helps


------------------
cheers

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > The Cookie Factor - with or without choci chips??

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap