Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Session variable from ASP to CF

Status
Not open for further replies.

ketankshah

IS-IT--Management
Jan 11, 2001
121
IN
I want to pass a session variable created in ASP to a cold fusion template. e.g. the login page is in ASP and also the home page where all the links are mentioned. One of the links calls a cfm page. This page needs to check whether the user has logged in or not by checking the session variable created in the asp login page.

Is it possible to do this? If yes, then how?

Any other alternative ?

Ketan
 
embed the variables in the url and then do as usual to retrieve the value (i think there's a faq here on how to get the passed value)
for example, say you cfm page is confirm.cfm, the cf variable name is user and the asp session variable name is asp_user, you'll write :

<a href=confirm.cfm?user=asp_user&quot;>

you can pass the variable thru a form as well :
<form action=confirm.cfm>
<input type=hidden name=user value=asp_user>
</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top