• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Session Variables Issue

Guest
Feb 08, 2007 Feb 08, 2007

Copy link to clipboard

Copied

Hi, I'm putting together my first shop.

I have built and tested on

IE6, then upgraded to IE7 & Firefox 2 XP PRo
IE7 XP Home

All is well and the site works fine on the XP machines. Each client / Browser retaining its own shopping cart information. Allowing for different users to select items.

A friend has given me 2 old machines to build a testing workstation for browser compatability. These are both IE6 Win98 machnes although 1 will be changing. Despite a few layout issues all seemed fine. Until I added things to the shopping basket.

It seems IE6 now (at least certainly under Win98) cannot persist the session data across pages. I'm not sure if this could be related to how they are conntected together (using a 10/100 switch) or if there is a setting in IE6 which would prevent this (not sure how this would be the case) or, more worrying, am I doing something wrong. My session/cart information is based heavily upon the CFMX7 Web Application Contruction Kit example. So I'm not sure what I could have done wrong.

Here is the code below. Its using NAte Wiess' own CFC and works perfectly in IE7 and I Think IE6 on XP

Any suggestions.

TOPICS
Advanced techniques

Views

283

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 08, 2007 Feb 08, 2007

Copy link to clipboard

Copied

or if there is a setting in IE6 which would prevent this (not sure how
this would be the case)


This is a very likely concern to investigate. For sessions to work
correctly, by default, cookies must be enabled in the browser. If the
browser has been configured to not accept cookies, then every request
made from that browser creates a new session on the server.

If you want your sessions to work without cookies you can pass the CFID
and CFTOKEN values that define an individual session through URL
variables. This does take some work to make sure every link, form and
any other interaction that generates a new request to the web server
pass these values.

There are aides in ColdFusion to help you with this process, check the
documentation for all the fun details.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 09, 2007 Feb 09, 2007

Copy link to clipboard

Copied

LATEST
The CFID and CFTOKEN variables are already in the URL.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation