Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP DLL instantiation wiping out .NET Session() variabl
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00707096
Message ID:
00708761
Vues:
15
This message has been marked as the solution to the initial question of the thread.
All,

It looks like this was one of those subtle 'null' errors. Since I have changed the following code from
if(Session["USERID"] == null)
{
    Response.Redirect("Logon.aspx?ReturnTo=" + PageName + ".aspx");
}
to
if(common.IsNull(Session["USERID"]))
{
    Response.Redirect("Logon.aspx?ReturnTo=" + PageName + ".aspx");
}
My spurious redirects have disappeared. It seems a little weird to me - sometimes the compiler warns you you cannot compare to null, other times it lets the comparision slide right on by.

Thanks to everyoen for the suggestions - just another part of the learning curve.

Doug
Douglas Osborne
Don't spend your life just wishing - http://www.AllGiftRegistry.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform