Solved

Session in C#

Posted on 2004-09-14
4
248 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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 …

759 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