Re: Session Variables dropping?

2004-10-14 Thread Keith Gaughan
Nick Baker wrote:

 A session variable holds through 2 pages then is not recognized on the 3rd 
 page. Going back to the other pages and refreshing that page shows the 
 session variable to be valid.
 
 Any ideas?
 
 Thanks,
 
 Nick
 
 More specifics
 
 1. Execute the following query
 
 cfquery name=Session.SrchResults datasource=BusDB Maxrows=160 
 dbtype=ODBC
 
 This same query will be used on each of the following pages, only 
 displaying different variables based on users selection. Below is the query.
 
 cfoutput query=#Session.SrchResults# startrow=#Session.CurrentRow# 
 maxrows=1
 
 On the 3rd page it throws the following error.
 
 Element SRCHRESULTS is undefined in SESSION

That's potentially an awful lot of data to be storing in the session.
It could be that CF is saying Bugger me! There's a lot of stuff here.
I'm dumping it.

In other words, try using query caching instead. It'll give you the
effect you're looking for without screwing the pooch with the session
scope.

-- 
Keith Gaughan -- talideon.com
The man who removes a mountain begins
by carrying away small stones...
...to make place for some really big nukes!
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Session Variables dropping?

2004-10-14 Thread Micha Schopman
I have systems running storing more than 100k records in the application
scope with no problem at all. I guess there still has to be a tiny itchy
annoying bug waiting for you to be resolved :-) I have never seen
problems like yours before.

 
Micha Schopman 
Software Engineer 
Modern Media, Databankweg 12 M, 3821 ALAmersfoort 
Tel 033-4535377, Fax 033-4535388 
KvK Amersfoort 39081679, Rabo 39.48.05.380
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Session Variables dropping?

2004-10-14 Thread Andy Jarrett
100k in the Application scope. WOW. When it comes to this sort of
thing im always way to reserved. Usually shying awaying from hold any
huge amount of data in a persistance scope.

What type of system you running this on: intranet, internet etc?? You
got many other application on the same server?

Andy
www.andyjarrett.co.uk



On Thu, 14 Oct 2004 16:08:17 +0200, Micha Schopman
[EMAIL PROTECTED] wrote:
 I have systems running storing more than 100k records in the application
 scope with no problem at all. I guess there still has to be a tiny itchy
 annoying bug waiting for you to be resolved :-) I have never seen
 problems like yours before.
 
 
 Micha Schopman 
 Software Engineer 
 Modern Media, Databankweg 12 M, 3821 ALAmersfoort 
 Tel 033-4535377, Fax 033-4535388 
 KvK Amersfoort 39081679, Rabo 39.48.05.380
 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Session Variables dropping?

2004-10-14 Thread Micha Schopman
The system runs 80 websites on a single instance of an inhouse developed
ColdFusion CMS. In my case the data which is stored has been filtered
before it is stored into the application scope, so don't think I store
10+ columns in the application query struct ;)

 
Micha Schopman 
Software Engineer 
Modern Media, Databankweg 12 M, 3821 ALAmersfoort 
Tel 033-4535377, Fax 033-4535388 
KvK Amersfoort 39081679, Rabo 39.48.05.380
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Session Variables dropping?

2004-10-13 Thread Nick Baker
A session variable holds through 2 pages then is not recognized on the 3rd 
page. Going back to the other pages and refreshing that page shows the 
session variable to be valid.

Any ideas?

Thanks,

Nick

More specifics

1. Execute the following query

cfquery name=Session.SrchResults datasource=BusDB Maxrows=160 
dbtype=ODBC

This same query will be used on each of the following pages, only 
displaying different variables based on users selection. Below is the query.

cfoutput query=#Session.SrchResults# startrow=#Session.CurrentRow# 
maxrows=1

On the 3rd page it throws the following error.

Element SRCHRESULTS is undefined in SESSION
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Session Variables dropping?

2004-10-13 Thread Scott Brady
On Wed, 13 Oct 2004 14:34:57 -0500, Nick Baker wrote:
cfoutput query=#Session.SrchResults# startrow=#Session.CurrentRow# 
maxrows=1

On the 3rd page it throws the following error.

Element SRCHRESULTS is undefined in
 SESSION

Check to make sure that you're reference the columns in the query
results correctly. I seem to recall that sometimes when you get
Element XXX is undefined inSESSION there's a sub-section in XXX
that's not defined. i.e., if XXX is a structure, you may be referring
to a key which doesn't exist in that structure.In this case, you may
be misspelling one of the columns in your query results.

Try doing a dump of the session state and see if srchresults is there.
 I suspect that it is.

Scott

-- 
-
Scott Brady
http://www.scottbrady.net/
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Session Variables Dropping

2003-06-06 Thread Sam Komolafe
Hi,
 
Why could session variables be dropping intermetently on my app.  The variables are 
properly locked. On each page I localize the variables by moving them to a local 
scope. Once in a while, this local variables which should always be there are not 
found.  I am using CF5 Pro on a Win2000 Server.
 
Thanks
Sam


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Session Variables Dropping

2003-06-06 Thread Sam Komolafe
Hi,
 
Why could session variables be dropping intermetently on my app.  The variables are 
properly locked. On each page I localize the variables by moving them to a local 
scope. Once in a while, this local variables which should always be there are not 
found.  I am using CF5 Pro on a Win2000 Server.
 
Thanks
Sam


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Session Variables Dropping

2003-06-06 Thread Charlie Arehart
Do you mean one session variable among many, or all session variables, for a
given user? When all the user's session variables disappear, it's often
simply because the session key (CFID and CFTOKEN) for the user is changing.
These are usually managed (passed from request to request) by way of
cookies.

This sudden disappearance usually is caused by something causing those
cookies to be lost, so that CF creates new values for them and the link to
the old session variable values is lost.

Could this be a situation where the user experiencing the loss is not using
cookies? Are you coding to anticipate that?

Might they have cleared their cookie cache? Or be using a filtering or other
program that might be blocking or eating/deleting their cookies? Might
they be behind a proxy that's either blocking or hiding them? Or causing the
same values to be shared by many users? Could they have logged off one user
on their machine and logged on with another, which would cause them to have
new cookies? Or might they have moved from one computer to another during
their session thus losing their cookies?

Here's a simple test: since you're using CF 5, you have access to the new
CFLOG tag. Write out a log entry (to a file of your choosing) the values of
the user's CFID and CFTOKEN, and some identifying characteristic for the
user, to see if the values of CFID/CFTOKEN are changing for them when the
sessions appear to be lost. If you have then log in, write out their
username with the values. Assuming you had a session.username value, you
could try:

cflog text=#session.username# #session.URLtoken# #cgi.remote_addr#
file=CatchSessErrors type=Information thread=yes date=yes time=yes
application=yes

This will only work as offered if you have a variable called
session.username. If not, remove that reference in the TEXT attribute. It
will write an entry to a file called CatchSessErrors.log in the log
directory where CF is installed: in CF 5, that is. In CFMX, the directory's
called logs (as in cfusionmx\logs), and in BlueDragon, it's in the
BlueDragon Server's work\cflog directory.

It's writing out session.URLToken, which is a reserved variable in CFML for
the session key (the CFID/CFTOKEN pair in CF 5).

If you're not having them log in to give you any unique username, you could
try their IP Address (cgi.http_host), which is offered in that example as
well. The only risk there is that if they're using a Proxy, you may see the
same values of IP address for the given CFID/CFTOKEN even if it's multiple
users. As a last resort, you could write out (or create a hash of) their
cgi.remote_user, cgi.http_user_agent, and cgi.http_accept, to try to
distinguish users reported as having the same IP address.

Anyway, the whole point of the exercise is to see if the same user (best
indicated by some login username or their IP address) is getting different
session tokens (CFID/CFTOKEN, as represented in session.URLToken). If they
are, then there's something wrong on their end, not likely with your code at
all.

If you don't have access to the log files, you could write out to a separate
file in the application directory with CFFILE. And if that's restricted,
just drop back to using CFOUTPUT to write the values to the screen for the
user to report to you. They and you will now have to track them over time to
detect when the problem arises, but it's a solution.

If you don't want that ugliness appearing on screen, you could have it done
only in a special template that they call (the session variable issues
should apply to all templates in a given directory), or you could write them
to the screen in a way that's hidden unless they highlight it (such as using
font color=white if outputting on a white screen, or using stylesheets).

Hope any of these tips may help. Sounds like fodder for me to come up with a
new article! :-)  I'll look forward to hearing what others have to say on
the subject.

/charlie

 -Original Message-
 From: Sam Komolafe [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 06, 2003 5:40 PM
 To: CF-Talk
 Subject: Session Variables Dropping


 Hi,

 Why could session variables be dropping intermetently on my app.
 The variables are properly locked. On each page I localize the
 variables by moving them to a local scope. Once in a while, this
 local variables which should always be there are not found.  I am
 using CF5 Pro on a Win2000 Server.

 Thanks
 Sam


 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Session Variables Dropping

2003-06-06 Thread Charlie Arehart
Of course, I meant to write If you have *them* login, write out their
username with the values rather than If you have *then* login.

And lest anyone feel cheeky about my saying CFLOG was new, I meant that
with respect to someone (like Sam) working on CF5, which is the release in
which it was introduced.

/charlie

 -Original Message-
 From: Charlie Arehart [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 06, 2003 6:26 PM
 To: CF-Talk
 Subject: RE: Session Variables Dropping


 Do you mean one session variable among many, or all session
 variables, for a
 given user? When all the user's session variables disappear, it's often
 simply because the session key (CFID and CFTOKEN) for the user is
 changing.
 These are usually managed (passed from request to request) by way of
 cookies.

 This sudden disappearance usually is caused by something causing those
 cookies to be lost, so that CF creates new values for them and the link to
 the old session variable values is lost.

 Could this be a situation where the user experiencing the loss is
 not using
 cookies? Are you coding to anticipate that?

 Might they have cleared their cookie cache? Or be using a
 filtering or other
 program that might be blocking or eating/deleting their cookies? Might
 they be behind a proxy that's either blocking or hiding them? Or
 causing the
 same values to be shared by many users? Could they have logged
 off one user
 on their machine and logged on with another, which would cause
 them to have
 new cookies? Or might they have moved from one computer to another during
 their session thus losing their cookies?

 Here's a simple test: since you're using CF 5, you have access to the new
 CFLOG tag. Write out a log entry (to a file of your choosing) the
 values of
 the user's CFID and CFTOKEN, and some identifying characteristic for the
 user, to see if the values of CFID/CFTOKEN are changing for them when the
 sessions appear to be lost. If you have then log in, write out their
 username with the values. Assuming you had a session.username value, you
 could try:

 cflog text=#session.username# #session.URLtoken# #cgi.remote_addr#
 file=CatchSessErrors type=Information thread=yes date=yes
 time=yes
 application=yes

 This will only work as offered if you have a variable called
 session.username. If not, remove that reference in the TEXT attribute. It
 will write an entry to a file called CatchSessErrors.log in the log
 directory where CF is installed: in CF 5, that is. In CFMX, the
 directory's
 called logs (as in cfusionmx\logs), and in BlueDragon, it's in the
 BlueDragon Server's work\cflog directory.

 It's writing out session.URLToken, which is a reserved variable
 in CFML for
 the session key (the CFID/CFTOKEN pair in CF 5).

 If you're not having them log in to give you any unique username,
 you could
 try their IP Address (cgi.http_host), which is offered in that example as
 well. The only risk there is that if they're using a Proxy, you
 may see the
 same values of IP address for the given CFID/CFTOKEN even if it's multiple
 users. As a last resort, you could write out (or create a hash of) their
 cgi.remote_user, cgi.http_user_agent, and cgi.http_accept, to try to
 distinguish users reported as having the same IP address.

 Anyway, the whole point of the exercise is to see if the same user (best
 indicated by some login username or their IP address) is getting different
 session tokens (CFID/CFTOKEN, as represented in session.URLToken). If they
 are, then there's something wrong on their end, not likely with
 your code at
 all.

 If you don't have access to the log files, you could write out to
 a separate
 file in the application directory with CFFILE. And if that's restricted,
 just drop back to using CFOUTPUT to write the values to the screen for the
 user to report to you. They and you will now have to track them
 over time to
 detect when the problem arises, but it's a solution.

 If you don't want that ugliness appearing on screen, you could
 have it done
 only in a special template that they call (the session variable issues
 should apply to all templates in a given directory), or you could
 write them
 to the screen in a way that's hidden unless they highlight it
 (such as using
 font color=white if outputting on a white screen, or using
 stylesheets).

 Hope any of these tips may help. Sounds like fodder for me to
 come up with a
 new article! :-)  I'll look forward to hearing what others have to say on
 the subject.

 /charlie

  -Original Message-
  From: Sam Komolafe [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 06, 2003 5:40 PM
  To: CF-Talk
  Subject: Session Variables Dropping
 
 
  Hi,
 
  Why could session variables be dropping intermetently on my app.
  The variables are properly locked. On each page I localize the
  variables by moving them to a local scope. Once in a while, this
  local variables which should always be there are not found.  I am
  using CF5 Pro on a Win2000 Server.
 
  Thanks

Session Variables Dropping

2003-06-05 Thread Sam Komolafe
Hi,
 
Why could session variables be dropping intermetently on my app.  The variables are 
properly locked. On each page I localize the variables by moving them to a local 
scope. Once in a while, this local variables which should always be there are not 
found.  I am using CF5 Pro on a Win2000 Server.
 
Thanks
Sam


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Session variables dropping

2002-03-28 Thread Lon Lentz

  I have an intermittent problem with the session scoped variables being dropped going 
from the frame definition template to the template within the frame. This is occurring 
on IE 6. I remember hearing at one point that IE 6 handles each separate frame as a 
separate window. Are there any known issues with how IE 6 handles session variables 
across frames?

Lon Lentz
Applications Developer and Keeper of the I.T.
http://ProofitOnline.Com - Free 15 Day Trial

__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Session Variables Dropping Dead..

2000-11-10 Thread Neil H.

All my Session Variables are dropping dead!!!  I posted to messages and no
one has answered. This is across the entire server.  No code has changed.  I
have Warm REboot Cold Reboot and the same problem.

someone PLEASE throw Ideas at me!

neil



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



Re: Session Variables Dropping Dead..

2000-11-10 Thread Gregory Harris

Session variables die after a reboot, they are only temporary variables
stored in the memory, not on the HD, bear this in mind...


Gregory Harris
Web Developer
Stirling Bridge Group LLC

- Original Message -
From: "Neil H." [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Friday, November 10, 2000 12:54 PM
Subject: Session Variables Dropping Dead..


 All my Session Variables are dropping dead!!!  I posted to messages and no
 one has answered. This is across the entire server.  No code has changed.
I
 have Warm REboot Cold Reboot and the same problem.

 someone PLEASE throw Ideas at me!

 neil


 --
--
 Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
 Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send
a message with 'unsubscribe' in the body to
[EMAIL PROTECTED]




Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



RE: Session Variables Dropping Dead..

2000-11-10 Thread Jaime Garza

Ideas:  mmm, how about registry problems?  or database problems if you have
configured so...  Remeber that the registry has a size limit.

Jaime/
 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 10, 2000 12:54 PM
 To: CF-Talk
 Subject: Session Variables Dropping Dead..


 All my Session Variables are dropping dead!!!  I posted to messages and no
 one has answered. This is across the entire server.  No code has
 changed.  I
 have Warm REboot Cold Reboot and the same problem.

 someone PLEASE throw Ideas at me!

 neil


 --
 --
 Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
 Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
 or send a message with 'unsubscribe' in the body to
 [EMAIL PROTECTED]


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]