• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF variable to PHP script

Participant ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

Situation:
My main site is coded in CF. My forum is coded in php. I am in the process of creating a single uniform log in and don't want to pass the log in information retrieved by CF via URL. I know passing by session is out the picture, and I'm not trying to repost by form, so I was thinking about using a cookie to store the infomation and then destroying it after log in.

Question:
What is the safest way to pass a cf variable to php?
TOPICS
Advanced techniques

Views

341

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

Have you considered writing a webservice in cf and calling it with php?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

No I haven't. Can you point me in the right direction to try that out.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

quote:

Originally posted by: romeogq
No I haven't. Can you point me in the right direction to try that out.

To write the webservice, write a cold fusion component. Put a function in it with access="remote".

Calling it from php is beyond my level of expertise.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

If you use a URL, be sure to encrypt it.

The same with any webservice you may write.

The safest way, is to share the info via a common database.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

LATEST
All the data is on the same database, just that one set of tables I created myself and the other set was created dynamically by the forum's set up script.

So far I pull the members info for log in on the primary site (via email & password). In doing so, I pull the members username (not id as previously mentioned), and now need to use the stored username and password to log into the forum.

Just saw your responce Dan, I'll give that a try. Thanks. And you too Mike.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation