ASP.NET determines whether a session exists or not (C #)

xiaoxiao2021-03-06  43

C # .NET judges whether a session exists or not

For (int I = 0; i

{

IF (session.keys.get (i) .Compareto ("no") == 0)

Strno = session ["no"]. TOSTRING ();

}

I don't know if there is any other method.

It is used to use

Session ["NO"] == NULL to judge. Thank you

~~~~ reminder.

转载请注明原文地址:https://www.9cbs.com/read-59492.html

New Post(0)