Clearing session object contents

Discussion in 'ASP .Net' started by itsme, Oct 16, 2003.

  1. itsme

    itsme Guest

    Hello,

    I am storing an XmlDocument into the session.

    Each time I want to store the XmlDocument into session, I
    should clear the session object and then store the
    XmlDocument.

    Can anyone tell me, what is the best way to clear the
    contents of a session object?

    My Session object is "shoppingCart".

    Session["shoppingCart"] = XmlDocument

    Thank you!
    itsme, Oct 16, 2003
    #1
    1. Advertising

  2. Session.Clear()
    http://msdn.microsoft.com/library/d...ssionstatehttpsessionstateclasscleartopic.asp

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://Steve.Orr.net
    Hire top-notch developers at http://www.able-consulting.com



    "itsme" <> wrote in message
    news:0b3201c39385$fa207370$...
    > Hello,
    >
    > I am storing an XmlDocument into the session.
    >
    > Each time I want to store the XmlDocument into session, I
    > should clear the session object and then store the
    > XmlDocument.
    >
    > Can anyone tell me, what is the best way to clear the
    > contents of a session object?
    >
    > My Session object is "shoppingCart".
    >
    > Session["shoppingCart"] = XmlDocument
    >
    > Thank you!
    >
    >
    Steve C. Orr [MVP, MCSD], Oct 16, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rico
    Replies:
    5
    Views:
    557
  2. news.eircom.net

    clearing contents of ostringstream object

    news.eircom.net, Jul 1, 2005, in forum: C++
    Replies:
    4
    Views:
    476
    Maxim Yegorushkin
    Jul 4, 2005
  3. richard

    clearing contents of a div

    richard, Mar 3, 2009, in forum: HTML
    Replies:
    3
    Views:
    348
  4. Terry Michaels
    Replies:
    0
    Views:
    115
    Terry Michaels
    Aug 28, 2010
  5. Replies:
    2
    Views:
    197
Loading...

Share This Page