Why can't I check when a session is timing out without refreshing the session?!?!!

I need to have a way of querying the server and getting the user's time left before the session expires.  That's it.  I put this code into the OnTick event of my Ajax Timer control and do stuff based on the value of the time left.  But it seems to be impossible to do without actually refreshing the session on the server.  I've been working on this for 3 DAYS now, and I have to admit, I'm ready to jump out the window.  Everything I try fails at some point...  It shouldn't be this hard!!!

So I first tried the method outlined in many articles that recommends using Session.Timeout.  Every time it comes back it's the same exact number of minutes.  So it seems that it's just refreshing the session on the server, which is definitely NOT what I want to do.

So then I tried using the FormsAuthenticationTicket Expiration value, but it turns out that if you have sliding expiration enabled in web.config, that cookie gets refreshed whenever the timeout value is half.  So, for example, if the session timeout is set to 5 minutes, when you have 2 minutes 30 seconds left, it will renew the Expiration date int he cookie.  So I can't use that.

So then I tried a method that would require getting the Session.Timeout when the page loads and setting a local, client-side timer that would count down.  Unfortunately, against my better judgement, this application uses popups, so I can't use a client-side timer since it will never be in sync with the actual session timeout.

So I'm out of ideas.  I've Googled this in every way I can imagine and I can't find a solution that will work for me.  I can't believe it's this hard to do this seemingly simple thing, but I don't know what else to try at this point.

PLEASE, if you have ANY way of getting this to work, PLEASE help me.  I'm desperate.

Thanks - eddie

0
eappell
7/23/2008 7:23:05 PM
asp.net.security 27051 articles. 1 followers. Follow

0 Replies
984 Views

Similar Articles

[PageSpeed] 40

Reply:

Similar Artilces:

Firefox RC3 Can't log in to www.tradedoubler.com. Error: 'Session timed out'
Name: jt Email: infoatkuvauskomeettadotfi Product: Firefox Release Candidate Summary: Firefox RC3 Can't log in to www.tradedoubler.com. Error: 'Session timed out' Comments: Firefox RC3 Can't log in to www.tradedoubler.com. Error: 'Session timed out' Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; fi; rv:1.9) Gecko/2008052906 Firefox/3.0 From URL: http://hendrix.mozilla.org/ ...

Don't know where do session placed and how session can provide the following questions
Thank you very much for every people whom view this page^^ I would like to write a session for different user to view the information that is according to the position: For example: The organization have a headquarter and 4 branch office. Headquarter and each branch offices have a System Administrator. The System Administrator in the Headquarter can view all the information in the system but S.A in each branch can only see the information of it's own company. There is a table in the databases that store the information of where they work( headquarter, branch office) A...

Can't see 'Xfce session' after update
Hey all. I'm a new openSUSE user. Thought of giving some other distros a try, so I started with openSUSE. I installed the Xfce packages and when I went to go install a panel plugin, it said that it needed to install some other stuff, including an update of xfce4-session to xfdesktop. After I did this, I could no longer see 'Xfce session' in the "Sessions" part of the log-in menu when I tried to log-in again. What do I need to do to fix this issue? -- linuxuser234 ------------------------------------------------------------------------ Login wi...

I can't get no cache, I can't get no cache. 'Cause I try and I try and I try and, I can't get no, I can't get no cache.
I have fiddled out for days tinkering with the setting in about:config trying to get FireFox 12 to use the disk cache. I have NOT found the trick. This One Trick Pony ain't doing it like it used to up until recently. Pray tell anyone, What information can I share that will point a knowledgeable person to aid me in getting FF to disk.cache? I have also tried restarting FF with add-ons disabled, (There were NOT too many to do this to, so it was quick and easy) Here is my stab at trying to convey the information that MIGHT govern matters Using about:cache Informatio...

Can't get a new Session Variable to pass into a method (used Session, TextField and QueryString)
Hi Everyone,  I have been battling with this for about 18 hours now and coudl use some help...  I have a form that inserts into a DB table and then calls a method that makes a query to another table to create a Dataset for insert into a third table. ( I haven't done the third table insert yet but first things first.) Step 1 works fine. Step two is the problem. When I call the method I pass in two variables to get  return it will only work if I call an OLD Session variable. The session vaiable i set in the onSelectedChange event won't pass into the parameters... I als...

Security startup's creed: you can't hack what you can't see
Security software startup Trusted Network Technologies Inc. is expected to come out of hiding this week. But it hopes its customers will appreciate the ability to make their networks and critical information systems more clandestine. The company is expected to disclose today that it has received $6 million in first-round funding from Charles River Ventures and Flagship Ventures, and it will unveil its access-management app, Identity, which sports a sneaky twist. According to company founder and CEO Stephen Gant, the app provides user access control by embedding a two-factor identity--o...

Re: I can't get no cache, I can't get no cache. ' Cause I try and I try and I try and, I can't get no, I can't get no cache.
<div>please com e see me about htis<br /> <br /> ------- Original Message f= rom the Global Relay Archive -------<br /> From: Hp &lt;ferd@farkel.net&gt;= <br /> To: "support-firefox@lists.mozilla.org" &lt;support-firefox@lists.mo= zilla.org&gt;<br /> Sent: Sun, 27 May 2012 18:30:18 -0700<br /> Subject: I = can't get no cache, I can't get no cache. 'Cause I try and I try and I try = and, I can't get no, I can't get no cache.<br /> <br /></div> <pre class=3D"gr-maex-body-pre&qu...

2010: Can't register - can't download the software - can't register until I have the software
I have active maintenance on Rad Studio: From: Vicky Rassmisaengthong [mailto:Vicky.Rassmisaengthong@EMBARCADERO.COM] Sent: Wednesday, February 25, 2009 1:58 PM To: rgrossman Cc: amer.supportadmin@codegear.com; Ashley Cosentino Subject: Software Assurance Support for Tech III Inc PO# Credit Card Dear Embarcadero Technologies Support Customer, Welcome! You have been registered as the primary contact on support account number AM####### Herewith we confirm your Embarcadero Technologies support agreement covering: Qty 1 RAD Studio Enterprise Named User licens...

First Time
I've just downloaded, installed and compiled the DotNetNuke 3.1.1 solution.  I can build it, but I can't get to the start page or step through and debug it to see how it works and to begin work customizing it.I get the message Error while trying to run project: Unable to start debugging on the web server.   I've copied the contents of the release.config file to a web.config file and I set the debug to rrue.  I running debug mode, but can't figure out why I can't see the web page in my browser either.   Is there a file that gives specific instructions for how to ...

After a looong night managed to change Session mode from inProc to SQLServer but still can't get the session variables to be saved
Hi,  I ran my Shopping Cart project and somehow everything worked fine(while in inProc), session variables were saved fine. I made some changes to my project and since then keep getting null session variables, no matter what I do. It took me the whole night to figure out how to turn to SQLServer mode,  marked custom classes as 'Serializable' with [Serializable] before the class definition but everything's in vain. Getting the same damned 'nulls' instead of the saved objects. private void Page_Load(object sender, System.EventArgs e)         {...

superreview granted: [Bug 273993] SSL client cache grows with non-restartable sessions : [Attachment 168386] don't cache sessions without a server name
Nelson Bolyard <nelson@bolyard.com> has granted Julien Pierre <julien.pierre.bugs@sun.com>'s request for superreview: Bug 273993: SSL client cache grows with non-restartable sessions https://bugzilla.mozilla.org/show_bug.cgi?id=273993 Attachment 168386: don't cache sessions without a server name https://bugzilla.mozilla.org/attachment.cgi?id=168386&action=edit ------- Additional Comments from Nelson Bolyard <nelson@bolyard.com> sr+ = nelson ...

Windows ICF: Can't Live With it, Can't Live Without it
an article by David Wong - last updated August 22, 2002=20 "Windows ICF (Internet Connection Firewall) is the built-in firewall in=20 Windows XP, both the Home and Professional editions. ICF is an=20 excellent personal firewall and will prevent most attacks from the=20 Internet. However, the lack of granular control makes ICF much too=20 restrictive for power users. So, as they say, you can't live with it, = you=20 can't live without it. For this article, we put ICF into the lab and set = our=20 hackers (well, security penetration testers) loose at it to see how good = ...

I was cut off several times in a session. I have stoppe dusing mozilla Firefox because of that. I can't say that it has impressed me and sometimes seems to slow everything down.
Name: k f j Product: eBay Companion Summary: I was cut off several times in a session. I have stoppe dusing mozilla Firefox because of that. I can't say that it has impressed me and sometimes seems to slow everything down. Comments: read above Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9) Gecko/2008052906 Firefox/3.0 From URL: http://en-gb.www.mozilla.com/en-GB/add-ons/ebay/feedback/ Note to readers: Hendrix gives no expectation of a response to this feedback but if you wish to provide one you must BCC (not CC) the sender for them to see it....

Why can't I retrieve this POE session's options?
I expected the following short program to print "My name is Tim" followed by "My name is Mud". Instead, this is the output: My name is Use of uninitialized value in concatenation (.) or string at opt.pl line 25. My name is Mud Apparently, the 'MyName' option isn't getting registered properly during the creation of the session. But when I later set the same option using the option() command, it works fine. Can someone spot what I'm doing wrong, most likely in my create() call? It's probably something stupid, but I just can't see ...

Web resources about - Why can't I check when a session is timing out without refreshing the session?!?!! - asp.net.security

Joint session of the United States Congress - Wikipedia, the free encyclopedia
Joint sessions of the United States Congress are the gatherings together of both houses of the United States Congress (the House of Representatives ...

Wall St ends shortened session steady
US markets lack direction in abbreviated post-Thanksgiving trading session.

NRL: Canberra Raiders head to Stromlo for intense running session to counter rule change
The Canberra Raiders are adapting to the NRL's reduction in interchanges and ensuring their front-rowers are fitter to play extra minutes next ...

Perth pub, nightclub opening hours to extend - Sunday Sessions, WA
AS THE east coast of Australia cracks down on late-night drinking, Western Australia is heading in the opposite direction.

Perth Sunday session trading hours extended
Perth pubs and nightclubs can now keep their doors open longer on Sundays under new liquor laws that come into effect this weekend. Perth pubs ...

Aaron Paul Hosts Binge Watchers Anonymous Session for T-Mobile
Every weekday, we bring you the Ad Age/iSpot Hot Spots, new and trending TV commercials tracked by iSpot.tv, a company that catalogs, tags and ...

S&P 500 ends flat in holiday-shortened session
The S&P 500 closed little changed on Friday, a fourth straight day of declines, amid weakness in energy and Walt Disney.

Should We Fear Peak Human?: Master Post for Uncharted 2015 Brad DeLong-Peter Leyden Session
**Jennie Eliot**: Your Uncharted Interview Video: To Brad, Peter.... >All links in one place: >* [Full video with highlights](http://reinven ...

Jeff Sessions: Supporting Citizenship for Illegals 'Should Be Disqualifying'
Jeff Sessions said supporting citizenship for illegals ought to be “disqualifying” for any candidate running to be the Republican nominee

Kurt Vile announces 2016 tour, did a La Blogotheque session
photo: Kurt Vile at Webster Hall in October (more by PSquared) Kurt Vile's ongoing tour in support of his great new album b'lieve i'm goin down... ...

Resources last updated: 12/1/2015 3:22:11 PM