Skip to main content
Known Participant
September 23, 2010
Answered

login with id and pw

  • September 23, 2010
  • 2 replies
  • 880 views

I login with my id and pw to the web page http://www.mycomp.com/DATA/db/index.cfm?action=edit

If I open another browser tab, I need to login with the same id and pw again.

How to make my index.cfm keep track of the fact that I had already logged in?

Any hint or related tutorial will be much appreciated.

ColdFusion version is 6.1.

I think I should do it with session variables so I am looking at:

http://www.adobe.com/livedocs/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/sharedVars5.htm

The HTTP session is captured as follows:

http://www.mycomp.com/DATA/db/index.cfm?action=act_proposal_edit

POST /DATA/db/index.cfm?action=act_proposal_edit HTTP/1.1

Host: www.mycomp.com

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 115

Proxy-Connection: keep-alive

Referer: http://www.mycomp.com/DATA/db/index.cfm?action=edit

Cookie: pmycomp-id=198.103.196.130.1282935108536569; CFID=32002; CFTOKEN=56751797; __utma=163983085.57742683.1284751128.1284751128.1284751128.1; __utmc=163983085; __utmz=163983085.1284751128.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Content-Type: application/x-www-form-urlencoded

Content-Length: 59

act=editProposal&Proposal_ID=928&Password=xyz12345&submit=Login

HTTP/1.1 200 OK

Date: Thu, 23 Sep 2010 13:38:41 GMT

Server: Apache

Content-Type: text/html;charset=iso-8859-1

Transfer-Encoding: chunked

----------------------------------------------------------

http://www.mycomp.com/css/base-institution.css

GET /css/base-institution.css HTTP/1.1

Host: www.mycomp.com

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10

Accept: text/css,*/*;q=0.1

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 115

Connection: keep-alive

Referer: http://www.mycomp.com/DATA/db/index.cfm?action=act_proposal_edit

Cookie: pmycomp-id=167.33.55.107.1281364460396256; __utma=214597780.1670341042.1281367441.1285182047.1285186388.34; __utmz=214597780.1285182047.33.12.utmcsr=www.mycomp.com|utmccn=(referral)|utmcmd=referral|utmcct=/DATA/db/index.cfm; JSESSIONID=F5E2381CF84FCA6E53ACAC9878A658DE; __utmc=214597780

This topic has been closed for replies.
Correct answer JR__Bob__Dobbs

Take a look at the "Securing Applications" section of the CF docs.

http://livedocs.adobe.com/coldfusion/6.1/htmldocs/appsecur.htm

You may wish to use the CFLOGIN and related tags/functions to secure your site.

2 replies

albertkaoAuthor
Known Participant
September 23, 2010

This is a related question, after login with id and pw, what is the command to reload the page to change the language from english to french?

I am thinking of appending the "&lang=fr" to the current url.

JR__Bob__DobbsCorrect answer
Inspiring
September 23, 2010

Take a look at the "Securing Applications" section of the CF docs.

http://livedocs.adobe.com/coldfusion/6.1/htmldocs/appsecur.htm

You may wish to use the CFLOGIN and related tags/functions to secure your site.