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: Mike Sale presenting Data Warehousing with SAS April 10 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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1109 views
  • 0 likes
  • 2 in conversation