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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coldfusion and Flash getURL 1

Status
Not open for further replies.

ice78991

Programmer
Nov 20, 2006
216
I am planning on including a flash component on a cfm page. The site has a member log in area. Is it ok to call getURL(...) within the flash component to redirect the user and will the session variables be preserved if I do?
 
I am planning on including a flash component on a cfm page. The site has a member log in area.
Insert friendly reminder on the evils of flash. It has it's uses but it should be used sparingly.

The site has a member log in area. Is it ok to call getURL(...) within the flash component to redirect the user
What do you mean by "Ok" the getURL will work.

and will the session variables be preserved if I do?
Yes, in some cases. Yes, with work, in others.
The session variable client side is either a cookie, or a URL variable that is passed along -- depending on if the client has cookies enabled (most people do, especially those with the flash plugin).

So, the practical upshot is that in most cases it's fine to just link the other pages using getURL, because they'll still have the cookie if they have cookies enabled.

The people that don't will need the session variable passed as a URL argument, and you'd have to use actionscript/coldfuson to programmatically figure out how to pass it into the getURL

[plug=shameless]
[/plug]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top