Extending a JSP session: advice?

S

Steve

Hi;

I'm working with a legacy JSP application that lets the user extend
the session by submitting an HTML form that is in a pop-up window.

I have been working as many pop-up boxes out of the application as
possible ( yay!). Our users hate them.

All of the JSPs for our web app have a footer include file that has
invisilbe divs that are made visible as a pop-up substitute.

I would the user to be able to extend a session by pressing a button
in one of these divs. I want to do that without the browser leaving
the page they are on.

Is AJAX my only or easiest option?

I've seen a few examples on the web. I'm a solid Java, JSP, and
Javascript programmer. Can anyone recommend a short intro to AJAX
that will enable to full understand such examples.

Thanks much in advance

Steve
 
A

Alex.From.Ohio.Java

Why not to start from roots and then go to the examples and tutorials?

http://www.w3schools.com/AJAX/default.asp

Also look for "target" for popup window, change it for one name and
you will have everything in one window.

Alex.
http://www.myjavaserver.com/~alexfromohio/

Hi;

I'm working with a legacy JSP application that lets the user extend
the session by submitting an HTML form that is in a pop-up window.

I have been working as many pop-up boxes out of the application as
possible ( yay!). Our users hate them.

All of the JSPs for our web app have a footer include file that has
invisilbe divs that are made visible as a pop-up substitute.

I would the user to be able to extend a session by pressing a button
in one of these divs. I want to do that without the browser leaving
the page they are on.

Is AJAX my only or easiest option?

I've seen a few examples on the web. I'm a solid Java, JSP, and
Javascript programmer. Can anyone recommend a short intro to AJAX
that will enable to full understand such examples.

Thanks much in advance

Steve

Why not to start from roots and then go to the examples and tutorials?

http://www.w3schools.com/AJAX/default.asp
 
M

Mark Space

Steve said:
Hi;

I'm working with a legacy JSP application that lets the user extend
the session by submitting an HTML form that is in a pop-up window.

Maybe I'm showing my noobishness but what do you mean by extend a
session? Are you asking the user if they wish to remain logged on?
 
H

Hal Rosser

I would the user to be able to extend a session by pressing a button
in one of these divs. I want to do that without the browser leaving
the page they are on.

Can't you change the 'session timeout' setting on the server in one of the
xml files?
I don't know what server you're using - so talk to your server
administrator.
 
S

Steve

Maybe I'm showing my noobishness but what do you mean by extend a
session? Are you asking the user if they wish to remain logged on?

Pretty much.

If the user logs into our system and does NOTHING with the browser for
20 mins s/he will get logged out. We currently have a pop-up box that
gives them a two minute warning and asks them if they want to refresh
their 20 min session.
 
S

Steve

Can't you change the 'session timeout' setting on the server in one of the
xml files?
I don't know what server you're using - so talk to your server
administrator.

Apples and Organges. It isn't the length of the session. It is
about warning them when they have been idle that their session is
about to end and asking them if they want to extend their session
( not be logged out ) eventhough they have been idle.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top