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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SESSION MANAGEMENT

Status
Not open for further replies.

cfwoohoo

Programmer
Mar 25, 2001
6
US
hello gurus,

i am having a problem with session management.
i am using a script similiar to


but the example on this site changes the cfid with each login. (creating a new session this is what i need).

the one i created keeps the same cfid/cftoken. does anyone have any suggestions?
 
That example tries to keep the CFID the same (It stores them in a database) and will try to reassign the same one too you when you come back (without cookies, that requires a "login")

You want them to be different? (confused) If I had a clearer idea of what you were looking for I may be able to help :)
 
I think you'll have trouble trying to replace the CFID & CFTOKEN as these are maintained automatically by CF. Once a user is assigned these, CF will try to store these as cookies on the user's browser and once they're stored, you'll have a hard time removing them as CF attempts to assign them with every page request if they're not present (when <cfapplication's in use). The only way I can think of to remove them would be to send the user to a page where there is NO <cfapplication> tag in use and use <cfcookie> to expire them.

I would really question why you would want to clear the CFID/CFTOKEN pair instead of clearing the session. IMO, you're more prone to have problems when you start trying to manipulate these when they're really designed to be managed by CF behind the scenes.

Just my 2 cents,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top