Solved

Passing Values from ASP Page to Cold Fusion Page ??

Posted on 2002-04-01
5
170 Views
Last Modified: 2013-12-24
Hi,

My requirement is after the user enters the Userid and Password from the Login ASP Page (say Login.asp)he
must be validated and if the validation is success he must be taken to the Cold Fusion Home Page ( say
Home.cfm) with the Userid and Password values passed to it ( these values should not be passed via URL
due to security reasons).
Pls. do suggest how to achieve this, if u have any code pls. do send us.

I was able to achieve this by passing the values thru. URL, but I want to achieve this without passing
thru. URL.

Thanks in Advance,
Rajesh
0
Comment
Question by:Thinkpad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 3

Expert Comment

by:winningl
ID: 6910272

pass it through form hidden variables.

<form name="test" action="home.cfm" method="post">

<input type="hidden" name="userid" value=asp_userid>

<input type="hidden" name="password" value=asp_password>

</form>


winningl
0
 
LVL 19

Accepted Solution

by:
cheekycj earned 25 total points
ID: 6910306
besides the above approach mentioned there are two other ways.

You can post to a CFM page from the ASP page (the form vars) and CFM can create a session var to state that the person is logged in.

Or use a cookie that is accessible to both pages that is a hash or an encrypted version of userid and password that the each script can decipher and use.

CJ
0
 

Author Comment

by:Thinkpad
ID: 6911965
The thing is I've to validate the Username and Password in the ASP Login Page itself by checking in the Database and after successfully check I've do another select and based on that I've to direct to Home page CFM's ( say Home1.cfm or Home2.cfm).
0
 
LVL 5

Expert Comment

by:Yog
ID: 6912171
execute the coldfusion page for validity using xmlhttp, get the result to the asp page and then do a query and send it back..works only with ie5 and above
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 9297443
Thanx for the "A"

CJ
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question