Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8155289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:37:45+00:00 2026-06-06T16:37:45+00:00

In my Flex application I need to authenticate to a j_security_check form (which seems

  • 0

In my Flex application I need to authenticate to a j_security_check form (which seems like a popular means of authentication), supplying j_username and j_password fields as parameters in an HTTP POST request. I intend to do so with a simple HTTPService (the other option known to me being URLLoader, but it provides the same result). Having sent a POST request, I wait for a response containing jsessionid as a SetCookie. However, I get an html page, that should appear only after I receive the jsessionid.

Here is what that actually looks like in terms of HTTP packets:

  1. My POST request to [baseurl]/j_security_check containing j_username and j_password
  2. An HTTP Status 302 response containing the jsessionid as a SetCookie
  3. A GET request (I am not sending it!) from my application to [baseurl]/login.jsp containing only a jsessionid that was received with the previous packet.
  4. An HTTP Status 200 response containing an html page that should be viewed in a web browser upon a successful login.

I need the value of jsessionid to use with a different, SOAP-based webservice as means of authentication. But I can’t seem to obtain it – Flex HTTPService silently catches the 302 response and sends the next GET; afterwards the cookie is nowhere to be found.

..however, the cookie is definitely cached somewhere in Flex, because it is supplied to all further requests to this server from any HTTPService instance!

I wonder if it is going to work with the webservice. Hence my question: how can I obtain the value of this cookie in Flex?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T16:37:46+00:00Added an answer on June 6, 2026 at 4:37 pm

    Apparently, after receiving a setCookie HTML header, Flex supplies it to any consequent HTTP requests – be it an HTTPService or a SOAP WebService. I haven’t found a way to obtain the value of this setCookie, but this situation works for my case anyway.

    UPDATE: This is a confirmed bug at Adobe Flex JIRA: http://bugs.adobe.com/jira/browse/SDK-15049
    resolution “deferred”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Flex application (SDK 4.5.1) which runs on iPad... I need to
I'm building a quite large Flex application as our administration tools and I need
I've created a simple Flex application to fetch an XML file. I need a
I have a Flex client application. I need a clean up function to run
My Flex application records audio-only FLV files using red5--I'd like to convert these to
I have a Flex application in which I draw a rectangle using: <s:Rect height=20
We have a Flex application which has several 'pages' worth of content. Each time
I have a flex application and need to show the real time data into
I have a flex application about 2M need to send to browser, so I
I need the user of my Flex application to be able to save a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.