HighTechTalks DotNet Forums  

Re: Session state...

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Re: Session state... in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ben
 
Posts: n/a

Default Re: Session state... - 07-07-2003 , 08:01 PM






Why are you calling a webservice that is within the same app. Shouldn't the
web service be on a different server or at least be a different IIS
application. If this is the case the Session will be different for the web
app and the web service. there is no chance of getting access to it. Why do
you want to store state in your web service? State be stored on the client
(ViewState), in the session of the web app or in the database.Web service
classes should be stateless.

Ben

"Palli" <palli (AT) lht (DOT) is> wrote

Quote:
Hi

Im a beginner in web services. Im trying to work with a
session in ws. The web services function is like this :

function bool login(...)
...
Session["EmployeeID"] = int.Parse(oReader["ID"].ToString
());
...

And everyting is allright

But when I try to get the session value in the aspx the
session is empty

...
webEmployee.cEmployee webEmployee = new
webEmployee.cEmployee();

bool bLogin = webEmployee.Login(tbxUserName.Text,
tbxPassWord.Text);

if (bLogin)
{
lblLogin.Text = Session["EmployeeName"]
}

...

does anyone know what my problem is?

Thanx
Palli



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.