sigh.... the problem is.. i'm using direct ip to access the website... which is an intranet.. problem still unsolve.... :(
han ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, May 03, 2002 10:33 PM Subject: RE: session/browser problem??!! > i posted the answer to this question a while back. > > > I have found the light > > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q316112 > > basically you can't have "illegal" characters in the domain name. in my case > it was a "_". > > > > > Anthony Petruzzi > Webmaster > 954-321-4703 > [EMAIL PROTECTED] > http://www.sheriff.org > > > -----Original Message----- > From: han peng [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 03, 2002 6:11 AM > To: CF-Talk > Subject: session/browser problem??!! > > > hihi.. i'm having some problem with the sessions. > > my codes works perfectly with IE 5, netscape 6 but not for IE 5.5 and IE 6. > are there any known issues of session/cookies problem with the latter > group?? > > seems like even i set all cookies and session enabled.. it still cant store > my sessions... :( > > hmm.. probably.. theres some problem with the way i write my codes.. > :( > > can u ppl help me to chk..? > > application.cfm: > ============== > <CFAPPLICATION name="evehicle" > clientmanagement="Yes" > sessionmanagement="Yes" > setClientCookies = "Yes" > sessiontimeout=#CreateTimeSpan(0,2,0,0)# > applicationtimeout=#CreateTimeSpan(0,2,0,0)# > clientstorage="evehicle" > setdomaincookies="Yes"> > > <!--- enables closing of browser to kill session ---> > <CFIF NOT IsDefined("cookie.CFID")> > <CFLOCK SCOPE="session" TYPE="readonly" TIMEOUT="5"> > <CFCOOKIE NAME="CFID" VALUE="#session.CFID#"> > <CFCOOKIE NAME="CFTOKEN" VALUE="#session.CFTOKEN#"> > </CFLOCK> > </CFIF> > <!--- end kill session ---> > <cfsetting enablecfoutputonly="yes"> > <!--- Session-Tracker Code ---> > <cflock name="#APPLICATION.applicationName#" type="Exclusive" timeout="5" > throwontimeout="Yes"> > <!--- If Session-Tracker does not exist, generate it ---> > <cfparam name="APPLICATION.SessionTracker" > default=#StructNew()#> > </cflock> > <cfsetting enablecfoutputonly="no"> > > > > > chklogin.cfm (to chk for valid login.. if true then set to session...) > ========== > .. blah...... > ............ > <cflock name="#APPLICATION.applicationName#" type="Exclusive" timeout="5" > throwontimeout="Yes"> > <CFIF #StructKeyExists(APPLICATION.SessionTracker, cgi.REMOTE_ADDR)# eq > "YES"> > <cfset userexist= "YES"> > <CFELSE> > <!--- Log current user ---> > <cfset userexist= "No"> > <CFSET dummy = StructInsert(APPLICATION.SessionTracker, CGI.REMOTE_ADDR, > Now(), true)> > </CFIF> > </cflock> > <CFIF #userexist# eq "YES"> > <SCRIPT LANGUAGE="JAVASCRIPT"> > alert("Multiple Users Login at 1 machine is not allowed. Current Window > will be closed.") > self.close() > </SCRIPT> > <cfoutput query="checkuser"><a > href="main/dsp_logout.cfm?strUserName=#CHECKUSER.STRUSERNAME#">Force > Logout?</a></cfoutput> > <CFELSE> > <CFSET session.login = queryNew("strUserName, IntAccessGroupID, > IntCompanyID, strSFID, dtmLastLogin, clientIP")> > <CFSET tempValue = queryAddRow(session.login, 1)> > <CFSET tempValue = querySetCell(session.login, "strUserName", > #trim(CHECKUSER.strUserName)#)> > <CFSET tempValue = querySetCell(session.login, "IntAccessGroupID", > #trim(CHECKUSER.IntAccessGroupID)#)> > <CFSET tempValue = querySetCell(session.login, "IntCompanyID", > #trim(CHECKUSER.IntCompanyID)#)> > <CFSET tempValue = querySetCell(session.login, "strSFID", > #trim(CHECKUSER.strSFID)#)> > <CFSET tempValue = querySetCell(session.login, "dtmLastLogin", > #trim(CHECKUSER.dtmLastLogin)#)> > <CFSET tempValue = querySetCell(session.login, "clientIP", > #cgi.REMOTE_ADDR#)> > <!-- If the user is logged in we transfer him/her to the homepage --> > > <CFQUERY name="UpdateLogin" datasource="#request.DSN#"> > UPDATE tblUser > SET dtmLastLogin = CURRENT_TIMESTAMP, > blnloginStatus = 1 > Where > strUserName = '#session.login.strUserName#' > </CFQUERY> > > <SCRIPT LANGUAGE="JavaScript"> > self.location ='./Main'; > </SCRIPT> > </CFIF> > > > > main/index.cfm (my main page which using fusebox3.. ) > ============ > <cfif not IsDefined("session.login.strUserName") or > session.login.strUserName eq ""> > <CFLOCATION URL="../index.cfm?msg=4" ADDTOKEN="No"> <!--- back to login > page.---> > </cfif> > .. > .. > .. > . > > > everytime i reach here.. > i was re-routed to login page again. :( > > > > > thank for yr help in advance.. > > Lost, > han :( > > > > ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

