Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello Friends,

i have set session while login page. i want to access that value in BAL layer. While i switch to any other page all session value pass null..
Can any one tell me how to solve that.


Thank You All
Posted
Comments
Jameel VM 1-Feb-13 0:10am    
set the session value in a static property.
Sergey Alexandrovich Kryukov 1-Feb-13 0:11am    
There are two many ways to screw up things. Show some code sample, if you need help. Please use "Improve question", above.
—SA
Yatin chauhan 1-Feb-13 0:19am    
Heloo SA
i have did like that but still it get null in all pages.
Sergey Alexandrovich Kryukov 1-Feb-13 0:25am    
I did not advise anything yet. I just say you need to "Improve question", otherwise there is nothing to talk about. Code sample!
—SA
Jameel VM 1-Feb-13 0:12am    
forexample:set session value in a property from where you got the session value like classlibrary.YourclassName.LoginSession=session["userid"];
class YourClassName{public static string LoginSession{get;set;} }

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900