Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SESSION RECOGNITION

Status
Not open for further replies.

fusionaire

Programmer
May 20, 2000
67
US
what I was wondering, was if someone<br>could explain exactly how you set up the session variables and also how<br>you<br>&nbsp;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>&nbsp;I am building a shopping cart application, and I have Session management<br>on,<br>&nbsp;and client management off, So, even though I can still get the CFID,<br>CFTOKEN<br>&nbsp;and URLTOKEN within my Session scopes, how can I set it so that a user who<br>&nbsp;orders a product at one session, could come back the next day and order<br>some<br>&nbsp;more products without getting the same CFID,CFTOKEN and URLTOKEN?<br><br>&nbsp;That is my problem. I am totally clueless on what to do for that. <br>&nbsp;NOTE:I do have a &quot;reciept&quot; 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>&nbsp;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>&nbsp;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>&nbsp;Any advice you can give will be much appreciated.<br><br>
 
Your problem is probably that CF is setting a cookie on the client's browser and using it next time around.&nbsp;&nbsp;As long as you have<br><br><FONT FACE=monospace>?cfid=#cfid#&cftoken=#cftoken#</font><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 &lt;cfapplication&gt; tag, use the parameter SETCLIENTCOOKIES=&quot;No&quot;.&nbsp;&nbsp;Be careful, though.&nbsp;&nbsp;If you don't have the cfid and cftoken appended to all the links within your site, the session settings will be lost....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top