Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Comments for: chriskings20001128

Message # 1017768:
Date: 10/28/03 19:56
By: Michael
Subject: RE: EASIER Cross Domain

This seems to be easier the only configuration you need to do to apache is something that MIGHT be already running.. just turn on your LOOP-BACK feature in your conf file. I believe it to be more secure too since your not really MAKING a session id. you just use the one each visitor to your site creates.. you just pass it through the URL with a simple href script like follows..

page 1 ( www.whateverdomain.com )
http://www.whateverdomain.com/<?=$PHPSESSID;?>

then..on
page 2 ( www.theotherdomain.com )

just add this at the VERY top...
identified by A , B, C. to seperate from the explanations.

A --- list($dummy, $sesid) = explode ('/', PATH_INFO);---
### THE $dummy is really just that.. the first variable available you can't set, since its basically the url itself.. so just call a $dummy to take its place and use the 2,3, and so on variables.

B --- session_id($sesid); ----
C --- session_start(); ----

that should really be all you need to get from domain to domain using session ID's and NOT really being vulnerable to hackers. when you close the browser, you destroy the session id the same as normal.

THIS is what I had to do to get it to work, this caused me from buying 25 SSL Certs( $4000.00 ) to just purchasing one and using it on my main site and just call to it for checkout on my e-commerce sites.

Previous Message | Next Message


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.