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

Kill Session

Status
Not open for further replies.

celley

Programmer
Jul 31, 2000
54
0
0
A2
How do I end/kill a session or session varriable?

I imagine that I need to do it with a StructDelete() function, but how?

Any ideas?

Chad
 
You can try to delete the variable that you created before when you start the session.

for example
in the beginning of session you have done this
<cfset session.authenticated=1>
<cfset client.userid=#userid#>

then to terminate the session you can do this
<cfset session.authenticated=0>
<cfset clientdeleted = DeleteClientVariable(&quot;userid&quot;)>

And don't forget to enable the client management & session management.

Djon
 
You can use Structclear(Session)....it gets rid off all session variables.


Bromrrrr
 
i have tried using Structclear(Session)

however nothing seems to happen. by the way, i am using CF4.0 Solaris. Is there any other way to destroy session.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top