1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

Can you iterate through all active sessions in asp.net

Discussion in 'Microsoft News' started by NewsBot, Mar 25, 2008.

  1. NewsBot

    NewsBot I Got News

    Joined:
    Feb 8, 2006
    Messages:
    1,813
    Operating System:
    Windows Vista Home Premium
    Hi,
    Is it possible to iterate through the contents of all active sessions in asp.net?

    I know a work around would be to add the session contents to an object in application but wondered if it was possible to do something like:

    foreach(session objSession in Session.Sessions)
    {
    ***string strTest=objSession["test"];

    }

    Is this possible?

    Thanks,

    Alex






     

Share This Page