| Author |
Topic Search Topic Options
|
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
Topic: 1 cookie for multiple sites Posted: 22 April 2004 at 4:55pm |
does anyone know how i can have a cookie that works on mysite.com and sub.mysite.com??
ive successfully got 2 forums to work of one userlist, and id like people to be automatically logged in, so that i can have the edit profile etc on the master site
ive seen a feature in cookies about it, theres one on this site somewhere, but id like it if sumone could explain it to me please
|
|
|
 |
Mart
Senior Member
Joined: 30 November 2002
Status: Offline
Points: 2304
|
Post Options
Thanks(0)
Quote Reply
Posted: 22 April 2004 at 4:57pm |
|
Hmm I thought that most users would not allow sub.mysite.com to read
cookies from mysite.com because that would be classed as a third party
cookie...
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
Posted: 22 April 2004 at 5:38pm |
oh damm
i just wanna be able to log into all sites thru one login pages
like MSN has
|
|
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 22 April 2004 at 6:46pm |
I think MSN might use passport. They probably also write the cookies and session info to disk. When you navigate to another subdomain or domain within their realm, part of the http header, and prrhaps part of the url is a key to the disk info. If you google for "asp code server farm" you should be able to find some how-to's.
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
zMaestro
Senior Member
Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
|
Post Options
Thanks(0)
Quote Reply
Posted: 22 April 2004 at 10:36pm |
|
I read that now most new browsers disabled this features, since it allows other sites to collect information about you, for example Amazon.com uses Cookies in order to track the items you searched for and your shopping cart as well, if this was possible, any site could know your interest by reading your cookies.
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
Posted: 23 April 2004 at 4:59am |
well i thought you had to state the cookie was going to be read by other sites and i got the impression from how it they was talking about it on jodohosts forums that this bit of code worked for a site and all its subdomains
Response.Cookies("MyCOOKIE").Domain = "mysite.com"
and i was wondering if anyone had more info on it eg if i had to put "sub.mysite.com" to write it for that site or if i could just put the above and it'd work for all my subdomains wither its "www." or "sub."
i guess i can tweek the forum to have a edit profile on both forums but i only wanted to have it on one forum becose of uploading Avatars would course problems between the sites
|
|
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 23 April 2004 at 8:15am |
|
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
Posted: 23 April 2004 at 8:55am |
thanks, i'll give it a try
|
|
|
 |