This sounds like it's related to the cookie setting problem where the page
would cflocate before the cookie was actually set.
Try using javascript (and don't forget locking):
<cflock scope="SESSION" timeout="10" type="exclusive">
<cfset SESSION.myVariable = "some value">
</cflock>
<script language="Javascript">
<!-- Hide script
top.location.href = "someNewPage.cfm"
// -->
</script>
<!--- someNewPage.cfm --->
<cflock scope="SESSION" timeout="10" type="readonly">
<cfoutput>#SESSION.myVariable#</cfoutput>
</cflock>
Sharon
At 04:59 PM 1/11/2001 -0600, Matthew Speed wrote:
>I hope this is not off topic, but if someone can ask about hard drive
>partitions then I figure anything should go.
>
>I have a page that sets a session variable
>
><cfset session.myvariable="somevalue">
>
>then I do a cflocation
>
><cflocation url="SomeNewPage.cfm">
>
>On that page I have a statement that says:
>
><cfoutput>#session.myvariable#</cfoutput>
>
>
>Which gives me the error
>
>Error resolving parameter SESSION.myvariable
>The session variable myvariable does not exist. The cause of this error is
>very likely one of the following things:
>The name of the session variable has been misspelled.
>The session variable has not yet been created.
>The session variable has timed out.
>
>If I take out the cflocation tag and just put that cfoutput statement on the
>first page it works correctly. The only thing I can guess is that CF is
>going to the new location before it sets the session variable. Anyone got
>any suggestions?
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists