?
Solved

Session in C#

Posted on 2004-09-14
4
Medium Priority
?
257 Views
Last Modified: 2010-04-17
Hi,

Is there any way I can detect in Javascript whether the session in server side is still alive without postback to server.

I using ASP.NET and C# as code behind.
0
Comment
Question by:wainc51
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 20

Accepted Solution

by:
ihenry earned 500 total points
ID: 12066727
I'm afraid the answer is no. There're might be a workaround if you can elaborate more on what are you trying to achieve.
0
 
LVL 4

Assisted Solution

by:Sicos
Sicos earned 500 total points
ID: 12070106
No you can't...

When you do a postback the session will always be alive because it's new created when the other session has ended...

Probally the only thing you can do is use some kind of timestamp in your page and look if the time is later than the timestamp + the session timeout


Greetings,
Sicos
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Starting up a Project

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question