Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - 1 cookie for multiple sites
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

1 cookie for multiple sites

 Post Reply Post Reply Page  123>
Author
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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

S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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

S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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

S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2004 at 8:15am

A "how-To" article at 15 seconds -

http://www.15seconds.com/issue/971108.htm


Lead me not into temptation... I know the short cut, follow me.
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2004 at 8:55am
thanks, i'll give it a try
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
 Post Reply Post Reply Page  123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.