Session in C#

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.
wainc51Asked:
Who is Participating?
 
ihenryConnect With a Mentor Commented:
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
 
SicosConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.