---
title: "retreive data from BO object to session variables"  
description: "retreive data from BO object to session variables"  
author: "sindhu aduru"  
published: 2012-02-22  
updated: 2012-02-22  
canonical: https://www.mindstick.com/forum/386/retreive-data-from-bo-object-to-session-variables  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# retreive data from BO object to session variables

Hi All,\
I need to save the [values](https://www.mindstick.com/forum/327/sum-textbox-values) of BO object into [session variables](https://www.mindstick.com/forum/267/session-variables) after logged in successfully to the website.\
Here is my [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii): IList<ConfigurationMaster> pConfigurationMaster = BLLConfigurationCountryandState.Instance.GetConfiguration(); Session[ConfigEnum.Country.ToString()] = new KeyValuePair<[string](https://www.mindstick.com/articles/1527/string-split-in-c-sharp), string>(pConfigurationMaster[0].ConfigNameId, pConfigurationMaster[0].ConfigValue); Session[ConfigEnum.State.ToString()] = new KeyValuePair<string, string>(pConfigurationMaster[1].ConfigNameId, pConfigurationMaster[1].ConfigValue); Session[ConfigEnum.City.ToString()] = new KeyValuePair<string, string>(pConfigurationMaster[2].ConfigNameId, pConfigurationMaster[2].ConfigValue); Session[ConfigEnum.AcademicYear.ToString()] = pConfigurationMaster[3].ConfigValue; Here i don't want to use the pConfigurationMaster[[index](https://www.mindstick.com/blog/198/index-in-sql-server)].configvalue;\
It's very urgent.Any one please help me in this. \
-Sindhu.A

## Replies

### Reply by Anonymous User

Hi,\
If you don't want to use **pConfigurationMaster[index].configvalue** you can store pConfigurationMaster directly to [Session](https://www.mindstick.com/articles/12042/session-in-c-sharp) instead of storing its value through index.


---

Original Source: https://www.mindstick.com/forum/386/retreive-data-from-bo-object-to-session-variables

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
