Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all articles
Browse latest Browse all 6243

Checking session variables

$
0
0

I have an external login service that I'm using to authenticate users.  After logging in, I get an XML file from which I can pull things like user ID and rights.

 

The login page redirects to an index page in another folder (which is protected by the authentication service) and on that page, I have a <cfif> statement that looks at rights.

 

The rights returned are "J" (for judge) and "A" (for admin), which I'm setting as the session variable: session.rights

 

If I do this:

<cfif session.rights eq "A">

admin section

<cfelseif session.rights eq "J">

judge section

<cfelse>

redirect to the login page

</cfif>

 

The else is what triggers.  If I cfoutput #session.rights# I get J, but for some reason, J does not equal J.  I've tried trimming it and everything, to no avail.

 

Any ideas?


Viewing all articles
Browse latest Browse all 6243

Trending Articles



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