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!

Did user enter my site via bookmark? 1

Status
Not open for further replies.

OldWilly

Programmer
Mar 1, 2002
66
In my site I pass cfid's and tokens in the URL.
It looks like when a user bookmarks my pages and re-enters later that his/her session variables are not getting set up correctly. If I could identify those entering in this manner, I could clear all session vars and set them up correctly. Any ideas? or am I barking up the wrong tree?
Thx in advance.
 
Session variables are not meant to persist across browser sessions. That's the whole point of the session scope. They're there during your browser session... but then, if the user closes the browser or is inactive on the site for a specified number of minutes, they're gone.

If there's data that absolutely must persist across browser sessions, you should use the CLIENT variable scope instead.

For all other data, you would simply check to see if the SESSION variables you need exist, and if not, set them. You can do this fairly easily in your Application.cfm.


-Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top