Trainer / Instructor UNIX C++ / C Senior-Hands On Programmer-WSI
WSI Nationwide, Inc.
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Implementing Cross-Domain Cookies
Cookies are a great invention, allowing the web developer to maintain the login status of their users. However, problems occur when your site or network has more than one domain.
The cookie specification says that any cookie set for one domain, must not be sent to any other domain. Therefore, if you set a cookie in your user's browser on one domain, that cookie will not be available on any other domain. This is a big problem, if you want your users to log in on one of your sites and still be logged in on your other domains.
My solution will use the following general framework:
  • A prepend script will be used that will accept the sessionid via GET or COOKIE. It will preferentially choose a GET variable over a COOKIE. Therefore, whenever we need to link across domains, we send the sessionid as a URL parameter.
  • The Apache configuration will be modified to do rewrites on all cross-domain cookies. The reason for this will soon become clear.
  • Variables will be used whenever a cross-domain href appears.
[ Next Page ]


Comments:
Cross DomainLavanya05/23/08 03:23
RE: (yet(yet)) another possibleGuus derks12/13/07 04:48
RE: Cross Domainsamantha02/19/05 07:03
RE: EASIER Cross DomainMichael10/28/03 19:56
Setting cookies on a Linux WebserverSiva10/17/02 02:07
RE: expiring cookies.Keri Henare07/25/02 04:01
RE: (yet(yet)) another possibleDanny Tuppeny09/12/01 09:28
RE: Great, why use rewrite at all?Danny Tuppeny09/12/01 09:24
RE: Why not use redirection?Danny Tuppeny09/12/01 09:22
expiring cookies.nagaraj09/12/01 05:50
RE: Privacy Concerns of John Q. PublicJesse08/03/01 14:49
(yet(yet)) another possibleHugh02/24/01 16:37
RE: Not a sessionPhil Greenway02/15/01 16:33
RE: Another methodDavid Davis02/02/01 14:16
Yet another waysander12/16/00 15:15
RE: I think I would have...Chris Kings-Lynne12/04/00 21:08
RE: Another methodMatthew Kendall12/04/00 02:26
Another methodAndrew Dickinson12/03/00 15:09
Privacy Concerns of John Q. PublicJim Hawley12/02/00 11:07
Great, why use rewrite at all?Brian Tanner12/01/00 20:51
Why not use redirection?Johannes Erdfelt12/01/00 14:17
RE: CookiesHreinn Beck12/01/00 04:51
I think I would have...Paul K Egell-Johnsen11/30/00 13:13
RE: Cross DomainmarcoBR11/29/00 20:14
RE: Cross DomainRobert11/29/00 19:25
deleting cookiesDonncha O Caoimh11/29/00 08:03
Cross DomainMicheal O Shea11/29/00 07:23
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.