Hi to Xtremers,
i'm having some session problems on my ASP.NET application. I'm a little confused and dont understand what is happening. I'm using CodeBehind.
Every time i redirect to a ASP.NET page the first thing i do is to put the session varibles into some local variable and in the end update the session again with the new values.
public string localVariable;
private void Page_load(object source, EventArgs e)
{
if (!IsPostBack)
{
localVariable = Session["SessioVariable"];
}
}
Sometimes when i click a botton and the ASP.net page does a postback i loose the value on localVariable. i am not sure but i think sometimes the session itself looses it's values. I know the session does not expire so i'm a little lost.
can anyone tell what's happening?
thx to all
i'm having some session problems on my ASP.NET application. I'm a little confused and dont understand what is happening. I'm using CodeBehind.
Every time i redirect to a ASP.NET page the first thing i do is to put the session varibles into some local variable and in the end update the session again with the new values.
public string localVariable;
private void Page_load(object source, EventArgs e)
{
if (!IsPostBack)
{
localVariable = Session["SessioVariable"];
}
}
Sometimes when i click a botton and the ASP.net page does a postback i loose the value on localVariable. i am not sure but i think sometimes the session itself looses it's values. I know the session does not expire so i'm a little lost.
can anyone tell what's happening?
thx to all