Sessions in iframe

Last post 07-02-2009 7:53 PM by Nazaf. 7 replies.

Sort Posts:

  • Sessions in iframe

    07-01-2009, 10:20 PM
    • Member
      24 point Member
    • Nazaf
    • Member since 08-10-2007, 2:09 AM
    • Posts 96

    Hi,
    Is it possible for an iframe (inline frame) to have same session as its parent page?
    For example, I have an iframe pointing to an .aspx page that requires user to be authenticated. The user is authenticated in  the page that contains the iframe, so I thought this iframe can hold same session. Is that possible?

    Thanks!

  • Re: Sessions in iframe

    07-01-2009, 10:41 PM
    Answer
    • Member
      576 point Member
    • Near
    • Member since 11-11-2006, 8:26 AM
    • Posts 169

    Hi,


    Can :D As long as it belongs to the same web site application :D


    HTH,
    Near

  • Re: Sessions in iframe

    07-01-2009, 11:20 PM
    • Member
      24 point Member
    • Nazaf
    • Member since 08-10-2007, 2:09 AM
    • Posts 96

    So does it have the same session automatically?
    And does this work in all browsers?

  • Re: Sessions in iframe

    07-01-2009, 11:29 PM
    • Star
      12,451 point Star
    • malcolms
    • Member since 06-12-2008, 4:38 AM
    • Melbourne, Australia
    • Posts 2,044

    If it's in the same domain it will have the same session.

    Sincerely,
    Malcolm Sheridan

    Microsoft Certified Solution Developer
    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as
    Answer" if a marked post does not actually answer your question.
  • Re: Sessions in iframe

    07-02-2009, 12:23 AM
    • Member
      24 point Member
    • Nazaf
    • Member since 08-10-2007, 2:09 AM
    • Posts 96

    Thanks.
    I understand.  But what about browser compatibility. Is this browser independent?

  • Re: Sessions in iframe

    07-02-2009, 12:38 AM
    Answer
    • Contributor
      4,508 point Contributor
    • deesh1531982
    • Member since 12-24-2007, 1:15 PM
    • Posts 766

    yes it can be shared and not depend on browsers. to learn more about sessions have a look at this

    http://msdn.microsoft.com/en-us/library/ms972429.aspx

    "Never underestimate the power of stupid people in large groups"
  • Re: Sessions in iframe

    07-02-2009, 12:49 AM
    • Star
      12,451 point Star
    • malcolms
    • Member since 06-12-2008, 4:38 AM
    • Melbourne, Australia
    • Posts 2,044

    deesh1531982 is 100% correct :)

    Sincerely,
    Malcolm Sheridan

    Microsoft Certified Solution Developer
    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as
    Answer" if a marked post does not actually answer your question.
  • Re: Sessions in iframe

    07-02-2009, 7:53 PM
    • Member
      24 point Member
    • Nazaf
    • Member since 08-10-2007, 2:09 AM
    • Posts 96

    Many thanks to all of you!

Page 1 of 1 (8 items)