Web Design and Development Forums

session in not clear after logout

This is a discussion on "session in not clear after logout" within the Java, JSP, Cold Fusion section. This forum, and the thread "session in not clear after logout are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > Java, JSP, Cold Fusion

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Mar 3rd, 2008, 05:45   #1 (permalink)
New Member
 
Join Date: Dec 2007
Location: India
Posts: 9
session in not clear after logout

how to clear session when somebody logout. Problem is that when somebody logout and again type the previous url, it again opens the previous page without loign page. Here is my application.cfm file code and logout code. Please someone help me. Thanks in advance.

<cfapplication name="myApplication"
sessionmanagement="Yes"
sessiontimeout="#CreateTimeSpan(0,0,20,0)#"
applicationtimeout="#CreateTimeSpan(0,0,0,0)#"
setclientcookies="yes">
<cfsetting showdebugoutput="No">
<cfcookie name="CFID" expires="now">
<cfcookie name="CFTOKEN" expires="now">

<cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
<cfset cfid_local = Cookie.CFID>)
<cfset cftoken_local = Cookie.CFTOKEN>
<cfcookie name="CFID" value="#cfid_local#">
<cfcookie name="CFTOKEN" value="#cftoken_local#">
</cfif>
<cfparam name="select" default="login">
<cfif Not isdefined("session.TEST")>
<cfinclude template="login.cfm">
</cfif>
<cfparam name="hostname" default="http://#HTTP_HOST#/">
<cflock timeout="30" throwontimeout="No" type="EXCLUSIVE" scope="APPLICATION">
<cfset application.fullpath = "#hostname#">
</cflock>
<cfset thisPath=ExpandPath("../")>
<cfparam name="drive" default="#GetDirectoryFromPath(thisPath)#">

and here is the logout code

<cfif select is "logout">
<CFLOCK SCOPE="SESSION" TYPE="exclusive" TIMEOUT="10">
<cfset abc=StructDelete(session, "TEST",true)>
</CFLOCK>
<cfcookie name="CFID" expires="now">
<cfcookie name="CFTOKEN" expires="now">

<cflocation url="login.cfm">
</cfif>
uday is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PHP Logout Message when redirect Aaron1988 PHP Forum 44 Nov 20th, 2007 08:29
help creating a login and logout page geyids PHP Forum 14 Mar 26th, 2007 06:35
Logout link and usability Webnauts Webforumz Suggestions and Feedback 1 Nov 10th, 2005 09:14
LOGOUT function Monie ASP Forum 16 Aug 19th, 2004 01:29
any body can teach me how to do a LOGOUT button in my ASP pa Monie ASP Forum 1 Jul 26th, 2004 08:39



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 23:05.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59