Is the new location under the same hostname (such as "www.mydomain.com") or
are you switching domains?  Like Phillip said, sessions are generally cookie
based.  If you move to a new host, the cookie can't be retrieved and you
lose access to your old session variables.

If you only need to pass some values to the new page, you can do that within
the URL in a cflocation tag.

<cflocation url="www.somedomain.com?somevar=34&another=John%20Smith">

Jim


----- Original Message -----
From: "Matthew Speed" <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 3:59 PM
Subject: CF Problem


> 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

Reply via email to