It's all about the answers!

Ask a question

How to get JSESSIONID value from firefox browser?


Ajay Gera (3137) | asked May 07 '13, 5:00 p.m.

I am getting below error when i am trying to do a member post into existing project area via Firefox REST client:

HTTP Status 403 - The user has the roles required to perform this operation, but the permission has been denied because this request might have been forged by a malicous website. To prove that this request is not part of a CSRF attack add a new HTTP header with the name 'X-Jazz-CSRF-Prevent' and use the current JSESSIONID value as the value.

My Concern is how to get current JSESSIONID value from firefox browser?

Ajay Gera 

Accepted answer


permanent link
Lauren Hayward Schaefer (3.3k11727) | answered May 08 '13, 6:59 a.m.
JAZZ DEVELOPER
Hi Ajay,
The way I've gotten the JSESSIONID in the past was to open firebug, click on the Cookies tab, and scroll down to JSESSIONID.
Ajay Gera selected this answer as the correct answer

Comments
Ajay Gera commented May 13 '13, 12:44 p.m.

Thanks Lauren for the reply


Lauren Hayward Schaefer commented May 13 '13, 12:46 p.m.
JAZZ DEVELOPER

You're welcome.

One other answer



permanent link
Stephane Leroy (1.4k149) | answered May 13 '13, 1:57 p.m.
JAZZ DEVELOPER
Hi Ajay,

if you want to avoid to use Firebug, be aware you could do it from default Mozilla/Firefox installation:

I personally use the following method with my Firefox (ESR 17.0.5):
- I click "Tools > Option > Remove Individual cookies"  (note: we'll remove nothing BTW)
Then:
1) for filtering purpose, I enter the hostname of my CLM server
  (e.g. localhost - as shown in the snapshot below -, clm1.mycompany.com, etc)
2) I select the lines with JSESSIONID appearing in the "Cookie Name" column.



  As you could find multiple ones.
  Just find out the one with the context root corresponding with the CLM application you're interested in.
  Namely:
        - /qm for QM for RQM,
        - /ccm for RTC
        -  etc.
  3) In the snapshot above, I was interested by the RQM session ID.
      Hence I finally copy/pasted the associated value in my favorite REST client.
  4) I click "Close" to close the Cookies window of Firefox/Mozilla.

Regards,
Stéphane

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.