fusionaire
Programmer
I have included the orignal letter below just in case anyone needs a brush up...<br><br>I have successfully added the ?cfid=#cfid#&cftoken=#cftoken#<br>to all the links within the site with no problem except for one.....<br><br>I still get the exact same CFID & CFTOKEN number everytime I try testing the application. So, I then added SessionTimeout="#CreateTimeSpan(0,0,3,0)#", so that after three minutes of doing nothing, the session should be reset correct? <br><br>I also have set in the Application a CFSET that reads:<br><CFSET Session.SessionID="#CFID##CFTOKEN#"><br>I then use that number for the ordernumber if and when a user would want to make a purchase. So..<br><br>WHAT AM I DOING WRONG???<br><br>Any advice, help or slaps in the face are welcome...<br><br><br>------ORIGINAL LETTER-----------------<br><br>what I was wondering, was if someone<br>could explain exactly how you set up the session variables and also how<br>you<br> reference them throughout the application. I am a newbie, and I have yet<br>to<br>find a single resource that clearly explains this.<br><br> I am building a shopping cart application, and I have Session management<br>on,<br> and client management off, So, even though I can still get the CFID,<br>CFTOKEN<br> and URLTOKEN within my Session scopes, how can I set it so that a user who<br> orders a product at one session, could come back the next day and order<br>some<br> more products without getting the same CFID,CFTOKEN and URLTOKEN?<br><br> That is my problem. I am totally clueless on what to do for that. <br> NOTE:I do have a "reciept" page that is supposed to reset all session<br>variables, but whenever I get back on the site, I recieve the same CFID<br>and<br> CFTOKEN. This is persistant even though I test the site daily, since I<br>started this site about two weeks ago, I still have the exact same number.<br> The reason I want to do it this way is because the we want the sessionID<br>to<br>be the order number.<br><br> Any advice you can give will be much appreciated.<br><br> <br><br><br>Was this post helpful?<br>Vote fusionaire TipMaster!<br> <br><br>Is this post offensive?<br>If so, Red Flag it!<br> <br><br>Check out the FAQ<br>area for this forum!<br> <br> <br>DarkMan (Programmer) May 24, 2000 <br>Your problem is probably that CF is setting a cookie on the client's browser and using it next time around. As long as you have<br><br>?cfid=#cfid#&cftoken=#cftoken#<br><br>at the end of ALL of your links within the site, you can turn the cookies off.<br><br>In your application.cfm file, in your <cfapplication> tag, use the parameter SETCLIENTCOOKIES="No". Be careful, though. If you don't have the cfid and cftoken appended to all the links within your site, the session settings will be lost.... <br> <br>