andyrauter
Technical User
hi every1,
i built an application which has totally 3 application.cfm pages. the first one is in the parent folder, and the other 2 are in child sub-folders. for eg: folder has an application.cfm file. and have application.cfm files too.
when the user logs into the main application, i set the session.allowin = 'true' for the parent application. then when the user tries to access either child1 or child2 directories - i check the user's permissions and set the session.allowin = 'true' for the child applications. in other words, when user tries to access the the application.cfm file in that directory queries the database. if user has permission, i set the session.allowin = 'true'. i do the same thing for
now lets come to problem i'm having !!
i'm having difficulties in logging the user OUT !
- when i'm in the parent directory, and i click the logout button, i redirect the user to index.cfm?login=logout. and in the index.cfm i set the session.allowin = 'false'. but this logs the user out of only the parent session !!
- so, i created similar files in child1 and child2 folders that set the session.allowin = 'false'. but now the user was not logging out of the parent application.
- so, i log the user out of the child application, and then redirect him to index.cfm?login=logout of the parent directory ! but now, i'm having problems with users that have access to both the child folders !
- moreover, if i keep redirecting users, i can't make this application scalable when i have more sub-directories !
is there an easier way for me to log the users out ? can i access other application variables by typing something like: parent.session.allowin = 'false', child1.session.allowin = 'false' ?
is there any tutorial where i can find more info about such problems in authentication and authorization ?
hoping to hear from someone,
thanx,
andyrau
i built an application which has totally 3 application.cfm pages. the first one is in the parent folder, and the other 2 are in child sub-folders. for eg: folder has an application.cfm file. and have application.cfm files too.
when the user logs into the main application, i set the session.allowin = 'true' for the parent application. then when the user tries to access either child1 or child2 directories - i check the user's permissions and set the session.allowin = 'true' for the child applications. in other words, when user tries to access the the application.cfm file in that directory queries the database. if user has permission, i set the session.allowin = 'true'. i do the same thing for
now lets come to problem i'm having !!

- when i'm in the parent directory, and i click the logout button, i redirect the user to index.cfm?login=logout. and in the index.cfm i set the session.allowin = 'false'. but this logs the user out of only the parent session !!
- so, i created similar files in child1 and child2 folders that set the session.allowin = 'false'. but now the user was not logging out of the parent application.
- so, i log the user out of the child application, and then redirect him to index.cfm?login=logout of the parent directory ! but now, i'm having problems with users that have access to both the child folders !
- moreover, if i keep redirecting users, i can't make this application scalable when i have more sub-directories !
is there an easier way for me to log the users out ? can i access other application variables by typing something like: parent.session.allowin = 'false', child1.session.allowin = 'false' ?
is there any tutorial where i can find more info about such problems in authentication and authorization ?
hoping to hear from someone,
thanx,
andyrau