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 3406344
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:36:59+00:00 2026-05-18T05:36:59+00:00

I have a Flex application which is served via a JSP page. In this

  • 0

I have a Flex application which is served via a JSP page. In this page I output the session ID using HttpSession when the page is loaded:

System.out.println("Session ID: " + session.getId());

In a very simple remote object hosted in BlazeDS (called from the flex application using an AMF Channel and standard RemoteObject functionality) I also output the session ID but this time using FlexSession (which as I understand is supposed to wrap around HttpSession).

System.out.println("FlexSession ID: " + FlexContext.getFlexSession().getId());

I would expect both IDs to be the same but this is not the case. The session IDs differ which is causing problems as there is data stored in the HttpSession which I need to be able to access from my remote objects within BlazeDS.

I’ve exhausted the reading material on BlazeDS and FlexClient/FlexSession/FlexContext but can’t see why the FlexSession is not being linked to the HttpSession. Any pointers greatly appreciated.

I feel I must be missing something fundemental here, am I accessing the

  • 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-05-18T05:37:00+00:00Added an answer on May 18, 2026 at 5:37 am

    Thanks to both answers above I finally found the root cause and thought I’d share it on here.

    The reason for differing session IDs was to do with the use of SSL for authentication and the use of AMF Channel rather than Secure AMF. Using the channel for the first time caused a new session to be created (hence the different ID) as the existing session related to the secure version of the site.

    Silly configuration mistake but worth passing on – make sure that if using SSL that you’re also using Secure AMF connecting to the secure endpoint rather than standard AMF or you’ll run into the same session ID problems I faced.

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

Sidebar

Related Questions

I have a Canvas in a Flex application which has items inside it that
I have a Flex application that calls a function which searches a large document
I have a Flex application where I'm using a Canvas to contain several other
I have a Flex application which shows an assessment to a candidate. At the
I have a login.jsp page which contains a login form. Once logged in the
I have a Flex 4 application which connects to ASP.NET webservice based on FluorineFx
I have a Flex application that connects to a BlazeDS server using the StreamingAMF
I have existing video streaming application which is based client server technlogy. Existing system
I have Flex 4 application in which I have one component as top layer
I have a flex application that needs the ability to generate and execute JavaScript.

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.