Determining all session variables?

  • Thread starter Thread starter Steve Caliendo
  • Start date Start date
S

Steve Caliendo

Hi,

Does anyone know a way to find out what the value & name of all session
variables currently are? I have an app that has about 50 or so, and I don't
want to query each one individually. Some sort of loop around the seesion
collection ?

Thanks,

Steve
 
There is a separate Session Collection for each user, and none of them are
accessible from a given Session, other than the current user's Session. If
you are using SQL Server to store Sessions, you could query the database.
Otherwise, you would probably have to use the Session_OnStart method to add
the current SessionID to an array or Collection in the (global) Application
Cache.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Back
Top