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

lost sessions

New Here ,
May 08, 2009 May 08, 2009

We're noticing some errors that might suggest sessions are getting lost.  It happens maybe once or twice a day on a website that gets a maybe a thousand visitors a day.  Is this normal? Is it likely something that can be fixed within Coldfusion, or is it something that is probably beyond our control?

567
Translate
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

correct answers 1 Correct answer

Valorous Hero , May 08, 2009 May 08, 2009

There are several ways that sessions can be lost.  Some of them are in your control some are not.

The first thing to consider is that session state requires that cfid & cftoken OR a jsessionid values are returned by a client for every request that should belong to an earlier session state.  These values are usually returned in cookies but can sometimes applications are configured to pass then through get aka url variables.  If anything prevents these variables from being returned ColdFusion will

...
Translate
Valorous Hero ,
May 08, 2009 May 08, 2009

There are several ways that sessions can be lost.  Some of them are in your control some are not.

The first thing to consider is that session state requires that cfid & cftoken OR a jsessionid values are returned by a client for every request that should belong to an earlier session state.  These values are usually returned in cookies but can sometimes applications are configured to pass then through get aka url variables.  If anything prevents these variables from being returned ColdFusion will not know what session a request belongs to and just create a new one for the request.

Common things can that mess with cookies that our out of your control, are browsers with cookies disables.  Virus|Anti-spam|spyware tools that strip cookies from requests or old or badly functioning proxy servers that strips OR caches cookies are three that I have seen in times past.

You should do every thing in your power to make sure there are not odd paths through your applications that maybe unintentionally eliminating state data.  But that can only be done by analyzing your application and trapping these errors and determining their causes.

Translate
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
Engaged ,
May 15, 2009 May 15, 2009
LATEST

What are the sort of "errors that might suggest that sessions are getting lost?"

It's very helpful to include a customer-feedback "contact the webmaster" link ... one that is as technically-uncomplicated as possible ... because when you do so, customers will often tell you about what just happened to them; what went wrong.  Although you get a fair amount of fluff and spam from such feeds also, it can alert you to problems that you don't know about (and greatly help to diagnose the ones that you do).

Translate
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