session variable mysteriously lost

sometimes it works sometimes it doesn't

Page 1 of 1

3 Replies - 8970 Views - Last Post: 18 September 2007 - 10:34 AM Rate Topic: -----

#1 supersssweety  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 22
  • View blog
  • Posts: 373
  • Joined: 16-March 07

session variable mysteriously lost

Posted 14 September 2007 - 08:37 AM

I have a session variable in my application, and sometimes it just mysteriously can not be found or it is 'undefined' right now it is undefined when using it in a query for a report. But on my bosses computer it is working. So right now he can view the data, but I get an undefined error. I lock it when I make it, and I used to have it locked everywhere I used it, but I changed it to lock only when I make it. I really don't understand locks, some say you need them every time, some say you don't. I also don't know if that has anything to do with why the session variable. The variable stays alive throughout all the pages...but once I get to the last page it dies...and only sometimes, like this hasn't happened to me since I took all the locks off. Keep in mind it is working fine for my boss right now...any suggestions?

Kacie

Is This A Good Question/Topic? 0
  • +

Replies To: session variable mysteriously lost

#2 supersssweety  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 22
  • View blog
  • Posts: 373
  • Joined: 16-March 07

Re: session variable mysteriously lost

Posted 18 September 2007 - 09:41 AM

OK so I have found some time and did some digging on this, it only gets lost on one page. The variable is used throughout the application and works throughout the application, accept for this one page. My boss pointed out something very interesting. I can navigate through the whole application, but when you go to that page the cfid changes. It is like you are a completely new person, here are the client variables on the page right before I get to the bad page:

Client Variables:
cfid=174779
cftoken=30604707
hitcount=4
lastvisit={ts '2007-09-18 11:18:57'}
timecreated={ts '2007-09-18 11:18:47'}
urltoken=CFID=174779&CFTOKEN=30604707



Here is the client variables on the bad page:

Client Variables:
cfid=174785
cftoken=77405485
hitcount=1
lastvisit={ts '2007-09-18 11:21:21'}
timecreated={ts '2007-09-18 11:21:21'}
urltoken=CFID=174785&CFTOKEN=77405485



Everything worked before, I have no idea how I broke it, does anyone know why this would be happening?
The session variables I use I lock when I make them, as type="exclusive". Then I don't lock them anywhere else because they are just being read. They work fine too, you can just click right through all the pages back and forth until you ask for the bad page. Then it is as if you a completely new user. Any ideas PLEASE hints, something, I have been reading the documentation and can't find anything!
Was This Post Helpful? 0
  • +
  • -

#3 supersssweety  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 22
  • View blog
  • Posts: 373
  • Joined: 16-March 07

Re: session variable mysteriously lost

Posted 18 September 2007 - 10:09 AM

oddly enough the url variable makes it though
<a href="http://xxxxx.com/clickDetails.cfm?l=#getLinkInfo.linkID#">
Was This Post Helpful? 0
  • +
  • -

#4 supersssweety  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 22
  • View blog
  • Posts: 373
  • Joined: 16-March 07

Re: session variable mysteriously lost

Posted 18 September 2007 - 10:34 AM

ok well i figured it out...
i didn't have setDomainCookies in my application file, for some reason I didn't need it before, but then I started getting the above problem, well i added it and set it to Yes and now it works...stangeness all around

This post has been edited by supersssweety: 18 September 2007 - 10:35 AM

Was This Post Helpful? 1

Page 1 of 1