hi

i am in critical problem

here my requirement

i have a WCF service which login the user and it return uer id

but i want to store that user id at server side because remaining methods required that id
so when user after success loing call product list the product list method auto pick user id
either from session or other way

please solve my this issue i will be very thankfull to u


how i can store user id in session and then reuse it ?


Thanks


Best Regards:
Nice Candy

if what you want is save something in a session variable do this

Session["UserName"] = "MyUserName";
//to retrieve
String MyUserName = Session["UserName"].ToString();
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.