BookmarkSubscribeRSS Feed
Quentin
Super User

Hi,

Currently the SPWA times out users after some amount of time, and requires them to log in again.  (I'm not an admin, assume this is configurable)

Was wondering if there is an easy way for an admin (or even better a developer who does not have admin rights), to have a warning dialog box pop up before a user is logged off?

We have had cases where during a demo/meeting review, someone has a graph open in their browser for 10 minutes discussing it.  Then they click a point to drill down and get prompted to re-login (and are thrown back to the beginning).

Would rather have it work like my bank does.  Where if I stare at a single screen too long, they pop up a "Are you still there?" box with a 30 second count down to automatic logoff unless I respond.

Any easy way to do this using just the default SPWA interface?

Thx,

-Q.

BASUG is hosting free webinars Next up: Jane Eslinger presenting PROC REPORT and the ODS EXCEL destination on Mar 27 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
1 REPLY 1
dcytermann
Calcite | Level 5

Hi,

That's a great idea ! Users in my organisation have the same problem.

I don't know of a way to do this easily.

My first thought is you could try and have the browser do the job like this :

1) get the default session timeout in the stored process sas code with

     stpsrvgetn('default session timeout')

2) with some javascript, repeatedly check if the time has run out :

     setInterval function can run a function in fixed intervals

     new Date().getTime() gets the current time

3) 30 seconds before time runs out you show a dialog (jquery-ui is good for this)

4) not sure how to keep-alive the session but maybe something like calling ajax on a dummy stp ?

The problem with this solution is that it relies on the browser too much and that you have to put the code in all your stp.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1095 views
  • 0 likes
  • 2 in conversation