Solved

Session in C#

Posted on 2004-09-14
4
228 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
4 Comments
 
LVL 20

Accepted Solution

by:
ihenry earned 125 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 125 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
move one pixel 4 68
Image decoding from Camera 3 88
Programatically extract date from website 8 77
What are programming codes and how do they work? 7 95
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
A short article about a problem I had getting the GPS LocationListener working.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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…

803 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