Hi experts,
Technologies: Spring, AJAX, Google web tool kit
Problem: Ideally when the user stops using a web page then after 30 minutes, if the user is trying to access any ting then the session gets expired.
But In my case one pages continually refreshes for every 30 seconds, hence not giving scope to session timeout even when the user stops using it.
Questions:
Is there any way to stop resetting of time in some specific cases, for example when we automatically refresh the screen then it should not consider that time.
OR
Is there any other solution checking the events(Mouse and Keyboard) and manually and then do session.invalid ate(). In this case. I am not able to know a best place to update the Attribute for saving the current time when the user clicks.
Please let me know your Opinions
5 5844 acoder 16,027
Recognized Expert Moderator MVP
First of all, why is the page refreshing every 30 seconds? Is it a whole page refresh or Ajax calls?
The page i am refering to has some connections and status information which will be checked for every 30 sec and update the GUI with the icons and message information.
The complete page is refreshed at this time.
acoder 16,027
Recognized Expert Moderator MVP
How about converting to Ajax requests, so the whole page is not refreshed? The URL that the request is made to doesn't set the session time so if there's no user interaction and the time has passed, the session is invalidated.
-- Presently we use Ajax request
-- we are not setting the session timeout, it is taking the tomcat session timeout bu default.
-- How to find out that there is no intaraction from the user and the time expired so that we can invalidate the session?
acoder 16,027
Recognized Expert Moderator MVP
If the Ajax requested page doesn't have any session code, would it work, i.e. you don't start a session in that page, so if requested, it wouldn't register as part of the session? This depends on how your server-side code works.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Chris Lasher |
last post by:
Hello,
I really like the finditer() method of the re module. I'm having
difficulty at the moment, however, because finditer() still creates a
callable-iterator oject, even when no match is found. This is
undesirable in cases where I would like to circumvent execution of code
meant to parse out data from my finditer() object.
I know that if I place a finditer() object in an iterative for loop,
the loop will not execute, but is there some...
|
by: serge |
last post by:
Using "SELECT * " is a bad practice even
when using a VIEW instead of a table?
I have some stored procedures that are
identical with the difference of one statement
in the WHERE clause. If I create a single View
and specify also in this View the WHERE clause
that is common in these stored procedures, I
will have the new stored procecures changed to
be like:
|
by: vermon |
last post by:
Is there any way to make a web app that updates automatically when the
server updates some flags? An example would be a web mail interface that
automatically updates the new email count as emails arrive. I guess one way
is to have the page reload every x seconds, but that it is not elegant at
all.
- Thanks!
|
by: Alan Silver |
last post by:
Hello,
I have some pages that are protected by forms authentication, and am
adding code to the global.asax so that if someone tries to load (say)
/order83.aspx, if they are logged in, it will rewrite the url to
/order.aspx?orderid=83, and if they aren't logged in, it will redirect
them to the default page.
The reason for this is that I don't want people seeing the login page if
they aren't site admin folk. If I just let the normal...
|
by: Jon |
last post by:
Hi,
How to make a combobox that always show as dropdown even when user click on
other places of the windows form?
By setting combobox.dropdown = TRUE.
This work if the focus is on the combobox, but once the user click on other
places of the window form, it automatically hide itself.....
any ideas? Many thanks.
| |
by: ABC |
last post by:
Will Session automatic clear memory when I unload web page?
|
by: Alan Silver |
last post by:
Hello,
I have a pair of radiobuttons on a form, used to select the type of
search someone is to do...
<asp:RadioButton ID="rdbLastNDays" Text="Show tips for the last"
GroupName="rbgSearch" runat="server" />
and
|
by: Untitled |
last post by:
Using Ajax .NET (or javascript) to auto-refresh some pages causes the
Session timeout to reset. In my application I have certain panels that
i would like to update every 10 seconds or so, but i don't want that
to affect the timeout of the session - i still want the session to
timeout after 20 min.
Basically, i would like to NOT reset the session timeout on certain
requests (even though they use the session information).
Is there...
|
by: jheines |
last post by:
I am trying to explain how cookies and sessions work in a class I teach, but I have hit a wall when it comes to the interaction between cookies and the state of the privacy settings in Internet Explorer. I would appreciate any help anyone can offer, please.
First, consider the following very simple JavaScript function:
function CookiesEnabled() {
SetCookie( "testcookie", "testcookie" ) ;
var bCookiesEnabled =
( GetCookie(...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |