For some page session timeout

Hello
Apex session time-out setting is to configure application setting.
Is it possible to have a timeout of session setting for a certain page?

Thank you

Vincent

Vincent,

You can set the lifetime of session and session idle time apex_util in accordance with the procedures described below, but only if it is a positive value for them in the attributes of the application:

PROCEDURE SET_SESSION_LIFETIME_SECONDS
 Argument Name                  Type                    In/Out Default?
 ------------------------------ ----------------------- ------ --------
 P_SECONDS                      NUMBER                  IN
 P_SCOPE                        VARCHAR2                IN     DEFAULT

PROCEDURE SET_SESSION_MAX_IDLE_SECONDS
 Argument Name                  Type                    In/Out Default?
 ------------------------------ ----------------------- ------ --------
 P_SECONDS                      NUMBER                  IN
 P_SCOPE                        VARCHAR2                IN     DEFAULT

For example, you can set idle time to 60 minutes (3600 seconds) in the application, but attribute when the user goes to page 10, say, have a process before header set to 5 minutes (300 seconds). Then when they navigate to another location, you will need to find a way to call the api again to adjust it back.

(If this is all in a single application, use the default value for p_scope, that is "SESSION").

Scott

Tags: Database

Similar Questions

  • HTTPS for some page

    Hello
    I have set up http and https in my http server.
    I wish I had some some in my application can are available in https mode.
    Anyone know how?

    Thank you

    Vincent

    Creating a process for application of conditions to shoot some pages:

    Before Header Application Process
    
    Name: prevent http direct access
    
    Type: PL/SQL Anonymous Block
    
    htp.init;
    owa_util.mime_header('text/html', FALSE);
    htp.p('Location: https://'||
      owa_util.get_cgi_env('HTTP_HOST')||
      owa_util.get_cgi_env('SCRIPT_NAME') ||
      owa_util.get_cgi_env('PATH_INFO')||'?'||
      owa_util.get_cgi_env('QUERY_STRING'));
    owa_util.http_header_close;
    
    Condition: PL/SQL
    owa_util.get_cgi_env('REQUEST_PROTOCOL') = 'HTTP' and :APP_PAGE_ID in (100,200,300) -- change this list of pages as you require
    

    Scott

  • For some pages only possible user permissions?

    I have a customer that is interested in British Colombia, but I need to know if they can assign permissions change user for certain pages to certain users? For example lets say they have pages A B C D E F and they want Tom to be able to edit A B & C but not D E F and they need Sally to be able to change D E & F, but not B & C. Is this possible with BC?

    Hello

    The option is to use and to define a "workflow" for 'content approval' on every page.

    Site settings-> manage workflows

    "You can attach a workflow approval process to a web page or a model. When approval is attached to a web page or the model, all changes must be approved by users prior to the system before they go live. "To focus a workflow on an item, click the"More Options"link and choose a workflow."

    Responsible for the site-> pages-> more options

    I hope this helps!

    -Sidney

  • in the APEX by clicking on the link hyper does not trigger session timeout page

    Hi all
    I have a question about the application of APEX session time-out. I created a simple application of the APEX. In the region report SQL section, I have code like this:

    SELECT DOC_Name, DOC_URL,
    "" < a href = "" | DOC_URL | "target ="_blank"/" > download < /a > ' pdf_link
    FROM test_table
    where emp_number = 00010001

    When the user click on the hyper link, it will show the landing page for the user (for example if DOC_URL = 'http://forums.oracle.com', it displays the oracle forum page in a new browser).

    But the problem is that after the user session timeout (I set to 240 seconds through shared components > change the security attributes, I put max the session for example 240 seconds timeout) when I click on this hyperlink, it does not raise my session timeout page and it still shows the page (oracle forum page).

    Why in the APEX by clicking on the link hyper does not trigger page session timeout after the user session timeout?

    How implememt or fix to trigger the session timeout page after clicking on hyperlinks?

    (BTW, our version of the APEX is 3.2)

    Thank you!

    Hello

    rather than use your my_stored_procedure you could call a new APEX page where you have a page called P999_PDF_ID. On this new page you would have
    treat a front header PL/SQL with the same code you have in your "my_stored_procedure". The only change would be to add a

    apex_application.g_unrecoverable_error := TRUE;
    

    at the end of your code as well as APEX does not generate a standard page of APEX.

    That's all. If a user clicks on a link, APEX will check the session timeout and if everything is ok, download your PDF file.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • For some reason that I do not see the developer at the bottom of the page links (Page Edit, Session, debug, etc.) How can I fix? Request Express 4.2.2.00.11

    For some reason that I do not see the developer at the bottom of the page links (Page Edit, Session, debug, etc.) How can I fix? Request Express 4.2.2.00.11

    I hope someone could help me!

    Thank you

    -Fury

    It could be caused by a known bug...

    Oracle Application Express 4.2.2 - known issues

    See: 16769040

    Concerning

  • Why need Session timeout with the public user for public portal?

    Hi all

    I use WebCenter Portal 11.1.1.8 and I found that with the user public space WebCenter show still expire page and redirect them to the login page. I did not understand why Oracle do? If Oracle cannot remove the public user session timeout, but they must not give this event for public user. The end user, they don't care in this respect, it just feel discomfortable.

    I really want a solution for this problem of Oracle. If the session is out of time, they only auto refresh page when the user doing anything on the new page (exp: moving the mouse, the key... event event) and the user will never know on this subject.

    You have an idea about this?

    Thank you!

    Hello.

    The patch allows just to use in file configuration web.xml depending the context-param:

    
         oracle.adf.view.rich.sessionHandling.WARNING_BEFORE_TIMEOUT
         0
    
    

    This feature is STANDARD in newer versions.

    He added the Web.XML WebCenter Portal (spaces).

    I recommend that you add by using the project of PortalExtension instead of change manyally web.xml because when you apply patches manually changes in the web.xml file are lost.

    Managing file web.xml in the WebCenter Portal (previously the WebCenter spaces) | VASSIT | UK

    Kind regards.

  • page automatic session timeout disconnection after inactivity of the user

    Hello gurus dreamweaver!

    Please how do I automatically my Member site Web page connection timeout after a period specifies the inactivity of the user.

    I discovered that is a member in my restricted page login and not forget to close your session, the page is will not disconnect automatically.

    How can I make my Web page, or automatically disconnect after a period specifies the inactivity of the user.

    See my below Member login page:

    <? php require_once('Connections/democon.php');? >

    <? PHP

    initialize the session

    If (! isset {})

    session_start();

    }

    * Log out the current user. **

    $logoutAction = $_SERVER ['PHP_SELF']. » ? doLogout = true;

    If ((isset & & ($_SERVER ['QUERY_STRING']! = "")) {})

    $logoutAction. = '& '. htmlentities($_SERVER['QUERY_STRING']);

    }

    {If ((isset($_GET['doLogout'])) & & ($ {_GET ['doLogout'] == "true"))}

    to completely disconnect a visitor, you must delete the session varialbles

    $_SESSION ['MM_Username'] = NULL;

    $_SESSION ['MM_UserGroup'] = NULL;

    $_SESSION ['PrevUrl'] = NULL;

    unset($_SESSION['MM_Username']);

    unset($_SESSION['MM_UserGroup']);

    unset($_SESSION['PrevUrl']);

    $logoutGoTo = 'login.php ';

    If {($logoutGoTo)

    Header ("Location: $logoutGoTo");

    "exit";

    }

    }

    ? >

    <? PHP

    If (! isset {})

    session_start();

    }

    $MM_authorizedUsers = "";

    $MM_donotCheckaccess = "true";

    Restrict access to Page: grant or deny access to this page

    Function isAuthorized ($strUsers, $UserGroup, $strGroups, $UserName) {}

    For safety, first assuming that the visitor is NOT allowed.

    $isValid = false;

    When a visitor is connected to this site, the MM_Username of Session variable value equal to their username.

    So, we know that a user is NOT logged if this Session variable is empty.

    If (! empty ($UserName)) {}

    In addition to being connected, you can restrict access to only certain users based on a created ID when they connect.

    Analyze the channels in the tables.

    $arrUsers = explode (",", $strUsers);

    $arrGroups = explode (",", $strGroups);

    If (in_array ($UserName, $arrUsers)) {}

    $isValid = true;

    }

    Or, you can restrict access to only certain users based on their user name.

    If (in_array ($UserGroup, $arrGroups)) {}

    $isValid = true;

    }

    If (($strUsers == "") & & true) {}

    $isValid = true;

    }

    }

    return $isValid;

    }

    $MM_restrictGoTo = 'login.php ';

    If (!) {(((isset($_SESSION['MM_Username']))) & & (isAuthorized ("", $MM_authorizedUsers, $_SESSION ['MM_Username'], {$_SESSION ['MM_UserGroup']})))}

    $MM_qsChar = ';?

    $MM_referrer = $_SERVER ['PHP_SELF'];

    If (strpos ($MM_restrictGoTo, "?")) $MM_qsChar = "&";

    If (isset($_SERVER['QUERY_STRING']) & & strlen($_SERVER['QUERY_STRING']) > 0)

    $MM_referrer. = « ? ». $_SERVER ['QUERY_STRING'];

    $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar. "accesscheck =". UrlEncode ($MM_referrer);

    Header ("Location:".) $MM_restrictGoTo);

    "exit";

    }

    ? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $colname_Recordset1 = "-1";

    If (isset($_SESSION['MM_Username'])) {}

    $colname_Recordset1 = $_SESSION ['MM_Username"];

    }

    @mysql_select_db ($database_democon, $democon);

    $query_Recordset1 = sprintf ("" SELECT * FROM Portal WHERE idno = %s ", GetSQLValueString ($colname_Recordset1,"text")");

    $Recordset1 = mysql_query ($query_Recordset1, $democon) or die (mysql_error ());

    $row_Recordset1 = mysql_fetch_assoc ($Recordset1);

    $totalRows_Recordset1 = mysql_num_rows ($Recordset1);

    ? >

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    < title > Untitled Document < /title >

    < / head >

    < body >

    < style p = "do-size: 18px" > < / p >

    < style p = "font size: 18px" > welcome < span style = "color: #F00" > <? PHP echo $row_Recordset1 ['firstname'];? > < / span > < span style = "color: #F00" > <? PHP echo $row_Recordset1 ['name'];? >! </span > you now connect in the Member area. < /p >

    < p > < / p >

    < table width = "356" height = "127" border = "0" align = "center" cellpadding = "6" >

    < b >

    < th colspan = "2" bgcolor = "#FFFFCC" scope = "row" > YOUR PROFILE < /th >

    < /tr >

    < b >

    < th width = "134" align = "left" bgcolor = '#FFFFCC' scope = "row" > NO ID < /th >

    < td width = "342" bgcolor = "#FFFFCC" > <? PHP echo $row_Recordset1 ["idno"];? > < table >

    < /tr >

    < b >

    < th align = "left" bgcolor = '#FFFFCC' scope = "row" > NAME < /th >

    < td bgcolor = "#FFFFCC" > <? PHP echo $row_Recordset1 ['name'];? > < table >

    < /tr >

    < b >

    < th align = "left" bgcolor = '#FFFFCC' scope = "row" > NAME < /th >

    < td bgcolor = "#FFFFCC" > <? PHP echo $row_Recordset1 ["FirstName"];? > < table >

    < /tr >

    < b >

    < th align = "left" bgcolor = '#FFFFCC' scope = "row" > EMAIL < /th >

    < td bgcolor = "#FFFFCC" > <? PHP echo $row_Recordset1 ['email'];? > < table >

    < /tr >

    < /table >

    < p > < / p >

    < p > < / p >

    < p > < / p >

    < p > < / p >

    < p > < a href = "<?" PHP echo $logoutAction? > "> sign OUT < /a > < /p >"

    < p > < / p >

    < p > < / p >

    < p > < / p >

    < / body >

    < / html >

    <? PHP

    mysql_free_result ($Recordset1);

    ? >

    .osgood_ ~.

    If the time-out period is applied to the side server, download links and others 'actions' all absolutely need to (and should) be run through validation. If there is a video completely downloaded on the screen there is only technology really client-side (JavaScript) which can detect if any action ' customer' is valid and within the time-out. I can think of scenarios 1 million and 1 million responses for each of them but finally if the user performs an action, or directly by refreshing PHP via AJAX, he should be hitting a side script server, and this time-out will decide last spring if the action is allowed or not. There all be wired through it.

    That said, although I said it is not 100% reliable and can be falsified, I would absolutely use a JavaScript (preference) or a refresh meta technique to bounce off the side of the customer as well as the logic in the back-end. The back-end is the absolute goal keeper and as you say, it would be little course if this isn't the case. The client side only decorate but is very important for a good user experience.

    piece gear ~

    Just $0.02, but you shouldn't go off with the stand-alone example code that I gave. In this scenario, I was 'definition' which, in your case, is of $_SESSION ['MM_Username"]. It had not been previously assigned. If Dreamweaver is the filling with a string and try try to reassign to one object (as I am) you will get errors. My code has been created as a completely isolated example, do not follow quite literally here as a paste - in the solution. I just need to know your level of comfort with PHP.

    I have not scanned all of this code for the PHP quality nor do I confess that I am familiar with the automation than Dreamweaver, but I'm very familiar with PHP, so it's the portion of code only from your original post with my timestamp amendment added to this. As mentioned, duplicate the file if you have your old code intact (still, or better, use git or SVN and version it). Then try to remove the part of the code of this page in replace with this:

     0)
      $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    }
    
    if (!function_exists("GetSQLValueString")) {
      function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      {
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      }
    
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
    
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      }
      return $theValue;
      }
    }
    
    //-----------------------------------------------------------------------------
    
    // define your idle max, in seconds
    define('IDLE_MAX', 5);
    
    // if we already have $_SESSION['MM_Username'], let's check a timestamp
    if (isset($_SESSION['MM_Username']))
    {
      // if we get here, we're logged in.. check or add a timestamp
      if (isset($_SESSION['timestamp']))
      {
        // we have a timestamp, let's see if it exceeds our idle threshold
        if ((time() - $_SESSION['timestamp']) > IDLE_MAX)
        {
          // we have EXCEEDED our idle, we are therefore going to log out.
          // Using the assigned variable from above:
          header($logoutAction);
          exit;
        }//if idle exceed
        else
        {
          // idle is not exceeded, allow the user to continue but UPDATE timestamp
          $_SESSION['timestamp'] = time();
        }
    
      }// if timestamp
      else
      {
         // we have a username but no timestamp, must be initial login
         $_SESSION['timestamp'] = time();
      }
    
    }//if MM_Username
    
    //-------------------------------------------------------------------------
    
    $colname_Recordset1 = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_Recordset1 = $_SESSION['MM_Username'];
    }
    mysql_select_db($database_democon, $democon);
    $query_Recordset1 = sprintf("SELECT * FROM portal WHERE idno = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $democon) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    

    Again, I've changed any of the logic of outside Dreamweaver removing closing/reopining tags PHP (not sure if the snippits need those, add as needed). I also removed the condition to start the session because it is completely unnecessary. It's literally everything, except the code see you near the end, surrounded by long comment lines-...

    Page has 2 points of basic input that I see, but no matter how many there. The logic is simple enough. If at the time wherever you arrive at my code, you have Dreamweaver validate a user, $_SESSION ['MM_Username'] will be defined. If that's true then I check a timestamp. Is there then the user was literally just connected, so I add a timestamp. Whenever the page is refreshed from there, re - run all the code, the timestamp is checked to make sure that it is below your IDLE_MAX (in seconds). I put it to 5 again to be clear. If the time is greater than 5 seconds since the logon, I use the above global defined $logoutAction and redirect you to the sign-out process which should land in login.php on the next redirection, as long as a user logged on.

    I always try to use the code that already exists and do nothing useless, but I must assume from this code that no information is sent to the browser for display in this code. A redirect to the header() function will not work if this is not the case. I don't "see" anything here which is explicitly doing just that so I guess it will work fine. Please give him a simple test and season to taste.

    No matter what the user is trying to do, if the idle time is exceeded the sign-out process is up on them at all times. No matter if they refresh, back, etc.

  • How to get the phone and messages back in my dock apps? And for some reason, I discover now all my app pages from the middle of my phone and not at the top?

    How can I get the phone and messages apps in my dock? And for some reason, I discover now all my app pages from the middle of my phone and not at the top?

    Try

    Settings > general > reset > reset home screen presentation.

    Note: All other applications will be organised by alphabetical order.

  • Gmail and all the others crash in "Oops!" Google cannot load this page for some reason any

    I am running 10.10.5 and Firefox 41.0.2. Sophos said me no problem.

    In case of Gmail or any other program running in Firefox, the program stops to the message of the screen;
    "Oops!"

    "Google can not load this page for some reason any."

    The box Try Again has no effect.

    However the use of "Most visited" (top of the line LH of Firefox screen) returns to place that quit, without loss of data

    Clear the cache and delete cookies only from Web sites that cause problems.

    "Clear the Cache":

    • Firefox > Preferences > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox > Preferences > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    If the deletion of cookies did not help, then it is possible that the cookies.sqlite file that stores the cookies has been corrupted.

    • Rename (or delete) cookies.sqlite (cookies.sqlite.old) and if present remove cookies.sqlite - shm and cookies.sqlite - wal in the Firefox profile folder in the cookies.sqlite case has been corrupted.

    You can use this button to go to the current Firefox profile folder:

  • For some reason any ASK became my main search engine for FIREFOX on FIREFOX start page how can I find my GOOGLE search engine

    For some reason to ASK is become my search engine for the main home page of Firefox search bar, I want to return my search engine on Google. How is that possible?

    This looks like a problem maybe caused by adware on your pc (oracle is group the ask toolbar in its critical security updates if you don't mind a disselect for example).

    Please go to firefox > addons > extensions and remove any suspicious entries (toolbars, the things that you have not installed intentionally, I don't know what purpose they serve, etc.). also go to Control Panel / programs and remove all toolbars or potentially unwanted software from there.
    Remove a toolbar that has supported your Firefox or the homepage search

    then install the reset search addon - he'll come back more often customizations make these adware programs in default firefox: https://addons.mozilla.org/firefox/addon/searchreset/

  • Pages pull up of certain documents and States "it cannot be opened for some reason any."

    I use the Pages more up-to-date on my macbook, but whenever I have pull up some documents, he says that he cannot find it for some reason any? I had no problem before, but all of a sudden does not work?

    If you get a dialog box that says essentially that "Pages cannot open this document for some reason any", you're actually done with this document because he suffered internal damage. Get an old copy of your Time Machine backup.

  • For some reason any, I can't log on to my facebook page, I was able to last week and now I can't get it

    For some reason any, I can't log on to my facebook page, I was able to last week and now I can't get it

    Please contact the Facebook Support for help with this issue:

    http://www.Facebook.com/help/?page=220217228006012

    http://www.Facebook.com/help/

    http://www.thefacebookforum.com/

  • Configuring session timeout in OIM 11 g R2 for console identity and sysadmin.

    I have an obligation to congiure session timeout in IOM GR 11, 2 ps2 to more than the default value.

    where can I check the default value and how to change it?

    Thank you

    Here is the guide: Handling Flexible of Session Timeout for Oracle Identity Manager Web Applications

  • After VO extension update the page for some fields on a page does not work

    After VO extension update the page for some fields on a page does not work. The message arrives the data are saved, but the values is the same as that of the former. And this happens with only a few fields, other fields are working well.

    Any pointer to solve problems will be of great help.

    Thank you in advance.

    Check if the standard VO has a RowImpl and it overrides the methods getter and setter for fields that is affected. If so, you will need to call super() in your custom extended RowImpl to call this logic.

    See the link below for how to call great from the extended RowImpl.

    Johny tips: OAF: transient attributes not getting filled extended vo

    Example Code:

    public String getAttribute1() {
       //return (String) getAttributeInternal("Attribute1");
      return super.getAttribute1();
     }
    

    If the above did not help, attach standard and custom VO files. We can have a look.

    See you soon

    AJ

  • I just got a chat session with unnecessary failure to load Adobe. I bought LR6 in September. He worked for a while. Now my develop the module is disabled and it says that I have to put the licensed software. I have my number series but for some reason, it

    I just got a chat session with unnecessary failure to load Adobe. I bought LR6 in September. He worked for a while. Now my develop the module is disabled and it says that I have to put the licensed software. I have my number series but for some reason any it not reactivate my software. I downloaded the software directly from Adobe. I paid for the license from Adobe. I have a serial number adobe, but nothing works.

    Hi iamangryatlightroom,

    Please refer to the related discussion and follow the steps to solve the problem.

    Reference: Lightroom 5.5 'Module Development disabled, please renew your membership'

    Let us know if that helps.

    Kind regards

    Mohit

Maybe you are looking for