Guest_imported
New member
- Jan 1, 1970
- 0
I have a few questions and hope my problems could help others learn. I am working on a coldfusion application and for security reasons it is imperative that I have no variables in the url string and also be able to pass and set session varibles with cookies turned off in browsers 4.0 and up.
I would think it would have something to do with pass the cf_id and cf_token? I thought I read about some code to check if cookie are on and then you have to use the cf_id and cf_token. I can recall where it was.
And is there anything wrong with not setting,
For example: session.login to true and just setting the session.userid after the SQL query that checks the form.userid and form.password gets a record?
and use the
<CFIF NOT IsDefined("Session.userid"
>
<CFLOCATION URL="../Login.cfm">
</CFIF>
code in the application.cfm of the secured directory/area?
and the issue i would like to understand is should I use the <cf_lock> everytime I set the session varibles I use like session.usermessage, session.usercount and session.userid.
Example:
<cflock timeout="10">
<CFSET session.userid=form.userid>
</cflock>
Thanks for any Help..........
Howcouldi
I would think it would have something to do with pass the cf_id and cf_token? I thought I read about some code to check if cookie are on and then you have to use the cf_id and cf_token. I can recall where it was.
And is there anything wrong with not setting,
For example: session.login to true and just setting the session.userid after the SQL query that checks the form.userid and form.password gets a record?
and use the
<CFIF NOT IsDefined("Session.userid"
<CFLOCATION URL="../Login.cfm">
</CFIF>
code in the application.cfm of the secured directory/area?
and the issue i would like to understand is should I use the <cf_lock> everytime I set the session varibles I use like session.usermessage, session.usercount and session.userid.
Example:
<cflock timeout="10">
<CFSET session.userid=form.userid>
</cflock>
Thanks for any Help..........
Howcouldi