CF-Talk,

I ran into some strange session behavior and wanted to see if anyone
else has experienced anything similar:

I have a site running on CF5 that utilizes cookie-based sessions (as
opposed to passing CFID & CFTOKEN via URL on every request). The
application spans two domains hosted on the same server: one domain
for a non-SSL catalog and the other for a SSL checkout. Both domains
run under the same Application.cfm file.

Based on a URL parameter passed to the store upon entry, the
application serves up a customized store front. Unique store elements
such as color scheme and images are pulled from a database, stored in
a session, and are accessed on each page request (not the best
approach, perhaps, but this is not subject to revision).

The strange behavior occurs when transferring from non-SSL to SSL
(CFID and CFTOKEN are passed via URL in this case). If a given store's
configuration does not have a database value for, say, a banner image
(and, thus, an empty session value), the session does not seem to
transfer to the SSL side. If there are no empty or NULL session values
for the store configuration, the transfer goes off without a hitch.

I fixed/patched the problem by setting local variables for each
session variable, using the value of the session variable if len();
otherwise using a default value.

These empty session values do not cause any problems on the non-SSL
side, only when transferring to the SSL side.

~ Ubqtous ~
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to