Link to home
Start Free TrialLog in
Avatar of johnson1
johnson1

asked on

Check if Session has expired

How can I check if Session has expired?
Something like this (it is not working - I get Input string was not in correct format).
if (Session["UserId"]!=null)
{
}
ASKER CERTIFIED SOLUTION
Avatar of Miguel Oz
Miguel Oz
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial