TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vishwas Kadamannaya
1.6k
122
142.5k
Check for Session in Asp.Net
Dec 2 2013 5:13 AM
Hi All,
May be this is a silly Question, How to check These two conditions ,
1.The session is not expired but , the session variable is not assigned any value.
2. Session variable is assigned with value, but session is expired.
if(Session["mykey"] != null)
{
// Session is not expired
}
else
{
// Session is expired
}
Will this condition work for above two scenarios, or do i have to handle this both differently.
Please Help.
Reply
Answers (
4
)
Using gridview event to display image in gridview in IMAGE
OPEN PDF FILE ON WEB PAGE AND SAVE AS PDF/A