Ask a Question related to ASP.NET Web Services, Design and Development.
-
Ben #1
Re: Session state...
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@lht.is> wrote in message
news:009e01c343d5$879accb0$a101280a@phx.gbl...> 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
Ben Guest
-
Session state IIS (Machine Key | Load Balanced Session)
This is a classic ASP group. Try microsoft.public.dotnet.framework.aspnet "Fred" <me@me.com> wrote in message... -
Session State
Hi, I understand that there are 3 modes in which I can configure the SessionStateModule. What I need is an out of process Session State store... -
session state ???
Hi, I have following function in a WebService-class : public int Count() { if ( null == Session ) Session = 0; else -
Using a SQL DB for session state.
I have encountered a problem when I restart a SQL server I lose my session variables for ASP.NET It seems that the Temp table cannot be used... -
Asp Session state ??
I'm pretty new to asp. It seems that I am assigning to the session rather than comparing against. I want to compare it in the first peice of code...



Reply With Quote

