CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: same sessionId

  1. #1
    Join Date
    Sep 2001
    Posts
    73

    same sessionId

    Hi,

    I have two application running in a single browser(Say two login pages in Internet explorer separated in frames).
    Now i sent a request to login from both the frames.
    After getting the response from the container i m printing the session id of HttpSession.What I get is same session id in both the frame.
    However if i printed the session object itself i got two different objects.
    Now i am unable to understand how two different request printed the same session Id but the different session object.

    And if the session id for two application is same then can i set an attribute to the session from one application and retrieve it from the other window.
    Is it the case that Internet explorer carries the same session across different window?

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163
    It is as you have found - you will get the same session ID from multiple accesses from a single browser 'session' (i.e. from a single browser instance running on the client). You get two different session objects on the server simply because a new session object is created each time you log in. Both session objects objects will have the same session ID because they share the same browser instance and therefore the same client to server session.

    Every man has three characters: that which he exhibits, that which he has, and that which he thinks he has...
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured