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

MM_UserAuthorization

Status
Not open for further replies.

theborg72

Technical User
May 18, 2010
1
SE
Hello. i try go get this funktion to start

i have try create somfing that hide

and show funktion on page with MM_UserAuthorization.

to make it i use EQ

<cfif Session.MM_UserAuthorization EQ 1>
show funktion only fore user with level 1
</cfif>

<cfif not Session.MM_UserAuthorization EQ 1>
hide funktion
</cfif>

then a login and logout..
i add structKeyExists to logout funktion to make session

work (allmost)

<cfif IsDefined("URL.MM_logout") AND URL.MM_logout EQ "1"

or (NOT structKeyExists(SESSION,'MM_USERAUTHORIZATION'))>

but when i close browser i get follow error
Invalid list index 0.
In function ListDeleteAt(list, index [, delimiters]), the

value of index, 0, is not a valid as the first argument

(this list has 0 elements). Valid indexes are in the range

1 through the number of elements in the list.


iff i reload page it working.

so i get negative valute in ListDeleteAt with is from the

Structkeyexists..

am stuck to find out how to make this work
 
Hi TheBorg72,

would like to help, but in your example you do not actually reference a ListDeleteAt() anywhere..

could you include it?

d.

We never fail, we just find that the path to succes is never quite what we thought...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top