Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: Getting NullPointerException on IsUserLoggedIn() Randomly

$
0
0

I am sorry for the same, I thought of it as another scenario No there no another maintain connections option.

 

Is the scenario is something like this ?

 

The user requests index.cfm for the first time  >    User gets assigned a new session (say session A)  >> User is not logged in so the login form is shown

 

or

 

The user (userA) logged in and a session (sessionA) is tied to this user A and  user opens a new browser session and requests index.cfm

 

Can you try to remove all extra code from within the cflogin tag and use it outside the cflogin tag as such:

 

</CFLOGIN>

<CFIF NOT StructKeyExists( session,"surveyname") AND IsUserLoggedIn() >

       .. move all the stuff that was in the cflogin for login successful here ...

</CFIF>


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>