Redirecting based on session

I need to redirect users based on their 'accessLevel', which is set via a session. I know how to do this in ASP but am running into problems translating into JSP. here's my code which doesn't work:
<%
String external = "guestPortal.jsp";
String internal = "report_portal.jsp";
if ((String) session.getAttribute("accessLevel") = "outsider") {
     response.sendRedirect(response.encodeRedirectURL(external));
     return;
if ((String) session.getAttribute("accessLevel") = "insider") {
     response.sendRedirect(response.encodeRedirectURL(internal));
     return;
%>
This doesn't work. I need to have one login page which everyone can use, and redirect them from there. I put the above code on a page called redirector.jsp . Any help would be greatly appreciated!!!!!
Mike g

Thanks larell. I modified your code just a bit (missed a couple of parenthesis) to this:
<%@page contentType="text/html" errorPage="error.jsp"%>
<html>
<head><title>JSP Page</title></head>
<body>
<%
String external = "external.jsp";
String internal = "internal.jsp";
String sessionValue = (String) session.getAttribute("accessLevel");
if(sessionValue.equals("external")){
response.sendRedirect(external);
else{
if (sessionValue.equals("admin")){
response.sendRedirect(internal);
else{
out.write("You suck and can not come in.");
%>
</body>
</html>
I had tried the .equals but I was doing didn't cast it to a string first (ie. was doing session.getAt.....equals(..)). Thanks for the help, cause it worked. Man I love this forum.

Similar Messages

  • Redirect based on user_level or user_id or session

    I am on a mission to find the
    technote or adobe
    support file that explains how to redirect based on
    user_level or user_id or session
    I have searched using:
    "redirect"
    "user level"
    and even:
    "redirect based on user"
    I know it exists (
    I read it) I just can't find it, Please can someone help me
    find it.
    Cheers

    MM_redirectLoginSuccess = $row_rsUser['destination_page'];
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "forumsza" <[email protected]> wrote in
    message
    news:gpiimv$pma$[email protected]..
    > Based on this article: (which only supports, ASP and
    JSP)
    >
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15881&sliceId=1
    >
    > Do I just add my PHP like this:
    >
    > MM_redirectLoginSuccess =
    > CStr(MM_rsUser.Fields.Item("destination_page").Value)
    >
    > The same as ASP?
    >

  • How can i get session object based on session id?

    I have tried searching in forum but i can't find any solution that i can get session object based on session id and i also would like to know how to check whether the session is still active? My company currently using weblogic 5.1. I really hope that some one or anyone can help. I am new in using Servlet. I hope that i can find some answer here. Thank you.

    I have a need to get a Session object from a session id, so I don't think that the above should be deprecated. Here is my use case:
    0. I am displaying files in a file list
    1. I am downloading files.
    2. I am downloading files through a Servlet
    3. I am displaying the files as images in an applet
    4. The applet is ImageJ, and it apparently uses a full URL to download the file.
    5. I use request.getRequestURL() in the applet .jsp to get the full URL (the hostname and port)
    6. My app server is OC4J and it's behind an apache server and is host aliased.
    7. Thus the hostname is different between my applet .jsp and the Servlet URLs
    8. Thus I have 2 different sessions
    9. Thus I need to pass the session id (or some other unique identifier).
    10. I could stored the unique identifier in the application object, but then I would need to clean it up
    11. I cannot pass the the full path to the image due to security problems (what if someone downloads my password file?)
    12. I would like this to work in a clustered environment
    13. I think that WebDAV would solve my problems, since I could pass a full URL of webDAV to ImageJ for download. However, I am unsure how the security of WebDAV would work with ImageJ/URLConnection. I will have to research this feature in ImageJ.

  • HTTP Redirect based upon SRC IP Address

    Is there a way to perform an http redirect based upon user's source IP address on the CSM/GSS environment?
    Logic:
    IF < src ip address is within exception list > THEN
    http redirect to URL2
    ELSE
    http to URL1
    END

    Is there a version of this solution (redirect by client source IP) for the CSS?
    I'm attempting to redirect clients from a few specific networks (source IP's) to the VIP of a second CSS using a service-type redirect and "prefer " ACL commands:
    clause 10 permit any 1.1.1.0 255.255.252.0 destination content owner/content-rule prefer service-type-redirect
    There is an "any any destination any" last clause in the ACL for the remaining source IPs. The ACL is applied to the incoming circuits leading to the webservers.
    A show of the ACL's shows all responses - no matter the client source IP - being caught by the permit any clause at the end of the ACL.
    Extra points: this is a one-arm design with source group destination applied (to return server traffic to the CSS) and traffic is https with SSL terminating at the servers (no SSL module). Content rules are set to be sticky for srcip. Both CSSs are answering content-based DNS queries for the same URL with their local VIP address (but controlling which DNS server clients query isn't readily possible, so static proximity using DNS didn't provide the answer).
    Each CSS is in a different data center: the idea is to keep traffic local by redirecting non-local traffic to its "local" (the other) CSS if services are active (and to keep traffic on the first CSS if the services at the redirected-to CSS are down).
    Don't want too much, do I? ;-)
    Thanks for everyone's time -
    -K.

  • How can we restrict EQL result based on session value

    How can we restrict EQL result based on session value or by checking with EBS secured function?
    Example: I create a Item Search Dashboard but I have more than one inventory organizations and I want to restrict dashboard to bring inventory org respective data by validating responsibility/profile option.
    Can anyone help me on this or if my concept is wrong so can anyone please guide me?

    Hi Bob,
    Thank you. Sorry for the late reply but I was busy in other stuff. I did the jar file and copied that Jar file into .ear/APP-INF/lib and copied on server and updated the df.securitymanager property under framework settings on Endeca Studio and restarted Endeca Server and Studio but seems like my class didn't get read. Kindly suggest and find below snippet of code;
        public void applySecurity(PortletRequest request, MDEXState mdexState, Query query)
                throws MDEXSecurityException
      init(request);
      String remoteUser = request.getRemoteUser();
      String recordFilterExpression = "XX";
      if(recordFilterExpression != null) {
      DataSource ds;
      try {
      ds = new DataSource(request, mdexState.getId());
      try {
      ExpressionBase expression = ds.parseLQLExpression("FND_USER_NAME='" + remoteUser + "'");
      DataSourceFilter dataSourceFilter = new DataSourceFilter(expression); 
      } catch (Exception f) {
      throw new MDEXSecurityException("Unable to apply Expression", f);
      } catch (DataSourceException e) {
      throw new MDEXSecurityException("Unable to create DataSource", e);

  • Killing a Session based on Session ID

    Is it possible to kill a Session based on Session ID ?
    The Scenarioo is when Same user logs in two different browser, the second user should not be allowed to login. But at the same tiome, the first user's session has to be killed . How to do this ?

    How to prevent duplicate posts?
    http://forum.java.sun.com/thread.jspa?threadID=632857&tstart=0

  • Php redirect based on value not working?

    Hello, i have a signup page, a login page, failed.php and a landing page once they have signed up.
    the user signs up (application-formP1.php) then once they have done this they are redirected to the next page (application-formP2.php) they then have other information to add.
    on application-formP1.php there is a redirect that if the user has finished with the page (completed it) they are directed to application-formP2.php
    if($status == "P1complete")
              header("location: application-formP2.php");
    the trouble i am having is if i just try to access application-formP1.php ( which is the signup page) it is automatically sending the user to application-formP2.php even if they are not signed in then because they are not signed in it is sending the user to the failed page (obiously because the retstrict user is working)
    i have included the code below for application-formP1.php
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO LettingsTenApp (tenID, progress, tenTitle, tenUsername, tenPassword, tenSex, tenEmail, tenDobDD, tenDobMM, tenDobYY, tenDepend, tenMarital, tenPrevSurn, tenEmployTyp, tenNINumber) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['tenID'], "int"),
                                                         GetSQLValueString($_POST['progress'], "text"),
                           GetSQLValueString($_POST['tenTitle'], "text"),
                           GetSQLValueString($_POST['tenUsername'], "text"),
                           GetSQLValueString($_POST['tenPassword'], "text"),
                           GetSQLValueString($_POST['tenSex'], "text"),
                           GetSQLValueString($_POST['tenEmail'], "text"),
                           GetSQLValueString($_POST['tenDobDD'], "text"),
                           GetSQLValueString($_POST['tenDobMM'], "text"),
                           GetSQLValueString($_POST['tenDobYY'], "text"),
                           GetSQLValueString($_POST['tenDepend'], "text"),
                           GetSQLValueString($_POST['tenMarital'], "text"),
                           GetSQLValueString($_POST['tenPrevSurn'], "text"),
                           GetSQLValueString($_POST['tenEmployTyp'], "text"),
                           GetSQLValueString($_POST['tenNINumber'], "text"));
      mysql_select_db($database_Letting, $Letting);
      $Result1 = mysql_query($insertSQL, $Letting) or die(mysql_error());
      $insertGoTo = "application-formP2.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_Letting, $Letting);
    $query_rsTenant = "SELECT * FROM LettingsTenApp";
    $rsTenant = mysql_query($query_rsTenant, $Letting) or die(mysql_error());
    $row_rsTenant = mysql_fetch_assoc($rsTenant);
    $totalRows_rsTenant = mysql_num_rows($rsTenant);
    $status = $row_rsTenant['progress'];
    // Redirect user if thier application is completed
    if($status == "P1complete")
              header("location: application-formP2.php");
    and the form
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" >
            <input type="submit" value="Save &amp; continue" />
            <input type="hidden" name="progress" value="P1complete" />
            <input type="hidden" name="MM_insert" value="form1" />
    </form>
    thanks

    i noticed i dint have the session variable on the form i have now included this
    <?php
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "";
    $MM_donotCheckaccess = "true";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && true) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "failed.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 (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;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO hostLettingsTenApp (tenID, progress, tenTitle, tenUsername, tenPassword, tenSex, tenEmail, tenDobDD, tenDobMM, tenDobYY, tenDepend, tenMarital, tenPrevSurn, tenEmployTyp, tenNINumber) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['tenID'], "int"),
                                                         GetSQLValueString($_POST['progress'], "text"),
                           GetSQLValueString($_POST['tenTitle'], "text"),
                           GetSQLValueString($_POST['tenUsername'], "text"),
                           GetSQLValueString($_POST['tenPassword'], "text"),
                           GetSQLValueString($_POST['tenSex'], "text"),
                           GetSQLValueString($_POST['tenEmail'], "text"),
                           GetSQLValueString($_POST['tenDobDD'], "text"),
                           GetSQLValueString($_POST['tenDobMM'], "text"),
                           GetSQLValueString($_POST['tenDobYY'], "text"),
                           GetSQLValueString($_POST['tenDepend'], "text"),
                           GetSQLValueString($_POST['tenMarital'], "text"),
                           GetSQLValueString($_POST['tenPrevSurn'], "text"),
                           GetSQLValueString($_POST['tenEmployTyp'], "text"),
                           GetSQLValueString($_POST['tenNINumber'], "text"));
      mysql_select_db($database_hostLetting, $hostLetting);
      $Result1 = mysql_query($insertSQL, $hostLetting) or die(mysql_error());
      $insertGoTo = "application-formP2.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    $colname_rsTenant = "-1";
    if (isset($_POST['P1complete'])) {
      $colname_rsTenant = $_POST['P1complete'];
    mysql_select_db($database_hostLetting, $hostLetting);
    $query_rsTenant = sprintf("SELECT progress FROM hostLettingsTenApp WHERE tenID = %s", GetSQLValueString($colname_rsTenant, "int"));
    $rsTenant = mysql_query($query_rsTenant, $hostLetting) or die(mysql_error());
    $row_rsTenant = mysql_fetch_assoc($rsTenant);
    $totalRows_rsTenant = mysql_num_rows($rsTenant);
    $status = $row_rsTenant['progress'];
    // Redirect user if thier application is completed
    if($status == "P1complete")
              header("location: application-formP2.php");
    ?>
    but it still is staying on this page if the column "progress" has "P1complete " in it

  • Need Help With Redirect That Uses Session Variable

    I am new to dynamic sites, php, and developer toolbox, but I have been able to create a login site using the different form wizards fairly easily (in CS3 with Developers toolbox).
    <br />
    <br />I am trying to set a server behavior on a page that redirects the user to a new page if a session variable matches a recordset.
    <br />
    <br />I was using an extension (PHP Sessions - http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&amp;extid=681308 ) that worked great, but when I installed developers toolbox, it stopped working (get error message about runtime/MX environment).
    <br />
    <br />Ive been struggling for days and this is what Ive come up with so far:
    <br />------------------------------------
    <br />session_start();
    <br />if (!isset($HTTP_SESSION_VARS[$_SESSION['kt_firstname']]) || $HTTP_SESSION_VARS[$_SESSION['kt_firstname']] = $row_Recordsetfname['firstname']) {
    <br /> header ("Location: ../firstname/firstname1.php");
    <br />}
    <br />------------------------------------
    <br />
    <br />It redirects regardless of the match. Any ideas on what I can do to get this working? Here is all of the code (with block from above inserted) up until the doc type:
    <br />------------------------------------
    <br /><?php require_once('../Connections/project1.php'); ?>
    <br /><?php<br />// Load the tNG classes<br />require_once('../includes/tng/tNG.inc.php');<br /><br />// Make unified connection variable<br />$conn_project1 = new KT_connection($project1, $database_project1);<br /><br />//Start Restrict Access To Page<br />$restrict = new tNG_RestrictAccess($conn_project1, "../");<br />//Grand Levels: Any<br />$restrict->Execute();<br />//End Restrict Access To Page<br /><br />if (!function_exists("GetSQLValueString")) {<br />function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") <br />{<br />  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;<br /><br />  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);<br /><br />  switch ($theType) {<br />    case "text":<br />      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";<br />      break;    <br />    case "long":<br />    case "int":<br />      $theValue = ($theValue != "") ? intval($theValue) : "NULL";<br />      break;<br />    case "double":<br />      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";<br />      break;<br />    case "date":<br />      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";<br />      break;<br />    case "defined":<br />      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;<br />      break;<br />  }<br />  return $theValue;<br />}<br />}<br /><br />// FELIXONE - 2002   SB by Felice Di Stefano - www.felixone.it<br />session_start();<br />if (!isset($HTTP_SESSION_VARS[$_SESSION['kt_firstname']]) || $HTTP_SESSION_VARS[$_SESSION['kt_firstname']] = $row_Recordsetfname['firstname']) {<br />  header ("Location: ../firstname/firstname1.php");<br />}<br /><br />$colname_Recordsetfname = "-1";<br />if (isset($_SESSION['kt_user_name'])) {<br />  $colname_Recordsetfname = $_SESSION['kt_user_name'];<br />}<br />mysql_select_db($database_project1, $project1);<br />$query_Recordsetfname = sprintf("SELECT firstname FROM registration WHERE user_name = %s", GetSQLValueString($colname_Recordsetfname, "text"));<br />$Recordsetfname = mysql_query($query_Recordsetfname, $project1) or die(mysql_error());<br />$row_Recordsetfname = mysql_fetch_assoc($Recordsetfname);<br />$totalRows_Recordsetfname = mysql_num_rows($Recordsetfname);<br /><br />$colname_Recordset1 = "-1";<br />if (isset($_SESSION['kt_user_name'])) {<br />  $colname_Recordset1 = $_SESSION['kt_user_name'];<br />}<br />mysql_select_db($database_project1, $project1);<br />$query_Recordset1 = sprintf("SELECT `Date` FROM registration WHERE user_name = %s", GetSQLValueString($colname_Recordset1, "text"));<br />$Recordset1 = mysql_query($query_Recordset1, $project1) or die(mysql_error());<br />$row_Recordset1 = mysql_fetch_assoc($Recordset1);<br />$totalRows_Recordset1 = mysql_num_rows($Recordset1);<br />?>
    <br />
    <br />------------------------------

    I am new to adobe toolbox... I ve created a ligin page but not sure how to pass the session variable. I am trying to direct successful login to a page like... index.php?id=filter
    <br />
    <br />been struggling all day with this. Please help!!!
    <br />
    <br /><?php require_once('Connections/comm.php'); ?>
    <br /><?php<br />// Load the common classes<br />require_once('includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("");<br /><br />// Make unified connection variable<br />$conn_comm = new KT_connection($comm, $database_comm);<br /><br />// Start trigger<br />$formValidation = new tNG_FormValidation();<br />$formValidation->addField("kt_login_user", true, "text", "", "", "", "");<br />$formValidation->addField("kt_login_password", true, "text", "", "", "", "");<br />$tNGs->prepareValidation($formValidation);<br />// End trigger<br /><br />// Make a login transaction instance<br />$loginTransaction = new tNG_login($conn_comm);<br />$tNGs->addTransaction($loginTransaction);<br />// Register triggers<br />$loginTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "kt_login1");<br />$loginTransaction->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);<br />$loginTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "{kt_login_redirect}");<br />// Add columns<br />$loginTransaction->addColumn("kt_login_user", "STRING_TYPE", "POST", "kt_login_user");<br />$loginTransaction->addColumn("kt_login_password", "STRING_TYPE", "POST", "kt_login_password");<br />$loginTransaction->addColumn("kt_login_rememberme", "CHECKBOX_1_0_TYPE", "POST", "kt_login_rememberme", "0");<br />// End of login transaction instance<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rscustom = $tNGs->getRecordset("custom");<br />$row_rscustom = mysql_fetch_assoc($rscustom);<br />$totalRows_rscustom = mysql_num_rows($rscustom);<br /><br />?>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <script src="includes/common/js/base.js" type="text/javascript"></script>
    <br />
    <script src="includes/common/js/utility.js" type="text/javascript"></script>
    <br />
    <script src="includes/skins/style.js" type="text/javascript"></script>
    <br /><?php echo $tNGs->displayValidationRules();?>
    <br />
    <br />
    <br />
    <br /><?php<br /> echo $tNGs->getLoginMsg();<br />?>
    <br /><?php<br /> echo $tNGs->getErrorMsg();<br />?>
    <br />
    <form method="post" id="form1" class="KT_tngformerror" action="%3C?php%20echo%20KT_escapeAttribute(KT_getFullUri());%20?%3E">
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <table cellpadding="2" cellspacing="0" class="KT_tngtable">
    <tr>
    <td class="KT_th">
    <label for="kt_login_user">Username:</label>
    </td>
    <td>
    <input type="text" name="kt_login_user" id="kt_login_user" value="<?php echo KT_escapeAttribute($row_rscustom['kt_login_user']); ?>" size="32" />
    <br /> <?php echo $tNGs->displayFieldHint("kt_login_user");?> <?php echo $tNGs->displayFieldError("custom", "kt_login_user"); ?></td>
    </tr>
    <tr>
    <td class="KT_th">
    <label for="kt_login_password">Password:</label>
    </td>
    <td>
    <input type="password" name="kt_login_password" id="kt_login_password" value="" size="32" />
    <br /> <?php echo $tNGs->displayFieldHint("kt_login_password");?> <?php echo $tNGs->displayFieldError("custom", "kt_login_password"); ?></td>
    </tr>
    <tr>
    <td class="KT_th">
    <label for="kt_login_rememberme">Remember me:</label>
    </td>
    <td>
    <input <?php if (!(strcmp(KT_escapeAttribute($row_rscustom['kt_login_rememberme']),"1"))) {echo "checked";} ?> type="checkbox" name="kt_login_rememberme" id="kt_login_rememberme" value="1" />
    <br /> <?php echo $tNGs->displayFieldError("custom", "kt_login_rememberme"); ?></td>
    </tr>
    <tr class="KT_buttons">
    <td colspan="2">
    <input type="submit" name="kt_login1" id="kt_login1" value="Login" />
    <br /></td>
    </tr>
    </table>
    <br />
    <a href="forgot_password.php">Forgot your password?</a>
    <br /></form>
    <br />
    <p>&#160;</p>
    <br />
    <br />

  • HTTP redirect based on client IP

    Hello,
    Is anyone aware of a method to redirect an HTTP request based on the Client IP using ICM/Web Dispatcher?
    The "icm/HTTP/redirect_" parameter doesn't appear to allow you to use the client IP as a criteria for the redirect, and I have not been able to find any other indication of how this might be accomplished on SMP, SDN, or Online Help.
    The goal of this is to perform a protocol switch and redirect all HTTP requests from a specific IP range to HTTPS.
    thanks!
    John

    Just a thought:
    Have two instances of Web Dispatcher, listening on different ports.
    Split incoming connections to different ports, whichever way is available:
    1. Ask you network team to forward request from one subnet to one port and another subnet to another port.
    2. On Windows server use RRAS
    3. On any server use software routing;
    4. Setup routing appliance before the server.
    Not too elegant, but should work...
    Regards,
    Slava

  • Question about redirecting user when session expires

    I have several pages that get and post variables sent to
    them. Is it possible to retain these values when the user's session
    expires? I want to be able to have the user re-log into the system
    and then have them redirected back to the page they were just on
    and preserver the get and post variables so that the data on the
    page can be rendered back to them

    is there anyway to manipulate the headers and store the
    information there and still have it accessible if the session were
    to time out?

  • Filter/Redirect based on file extension and path

    Posted this earlier on the NSAPI list, didn't get a response. Can some
    one help?
    Thanks
    Immanuel
    I am attempting to write a filter/redirector based on file extension
    and
    the path of the file - some thing like:
    http:\\www.wombat.com\filetpye1\file1.abc
    gets redirected to server http:\\foo.com\file1.abc
    http:\\www.wombat.com\filetpye2\file2.xyz
    gets redirected to server http:\\bar.com\file2.xyz
    Can some one tell me
    a. Is this possible using NSAPI and conf file changes
    b. Pointer (and source if available) to implment this
    Regards
    Immanuel

    You need to use Client tages and redirect and other SAFs. More info in :
    http://docs.sun.com/source/817-1834-10/crobjsaf.html#wp18074
    http://docs.sun.com/app/docs/doc/820-1643/abvaq?l=en&a=view&q=Client+tags

  • Redirection, target and session

    Hi,
    I'm a french developer, and i'm facing a problem for which i haven't found a solution yet.
    Let me explain :
    I'm developing a web application in JSP. In this webapp, I try to use sessions, but, when I redirects the user to a new page - in a target frame - using JavaScript, it seems that I loose the session..
    In fact, I have noted that the session ID was different in the two pages.
    It seems too, that one can not use the response.sendRedirect on a target frame.. but this expression seems to be the one to use with the sessions..
    I'm lost..
    Is there somebody to help me?

    From your first description the session id seems to be lost during the JavaScript-redirect. If you have to use JavaScript, make sure that cookies are enabled for tracking the session id or the redirection url is created using response.encodeURL() in order to enable url rewriting.
    Example:
    out.println("<a href=\"" + response.encodeURL(request.getContextPath() + "/whatever") + "\">Link Description</a>");Maybe you should print the session id to a server side log file and into the response to compare the session ids and find out at which point the session id changes.
    Carsten

  • Tree menu based on session variable?

    Hi all,
    is there somewhere a javascript or php or html (or extension)
    tree menu
    that will highlight the current branch based on a session (or
    cookies, at
    least) variable content?
    I cannot fint it anywhere.
    TIA
    tony

    hi Christian,
    Thanks for your help,
    Here is my situation, I have a fact table of very high volume, because of which reports are taking lot of time in displaying results. Recently I have been assigned one of these reports and asked to improve its performance. so, I thought to use a opaque view(thought to apply all the fact related reports filters into WHERE Clause using session variables which can bring down table volume) and then switch this table source with original fact table using 'dynamic' table under existing alias table definition with the help of session variable. The purpose of this table switch is, all existing reports will  source from original fact table, where as modified report will be sourcing from opaque view.
    I would like to try to your suggested approach "creating a placeholder column which contains the exact variable string content for the table source and the opaque view source respectively", but how does OBIEE switch priority of these LTS, can you please explain me this approach a bit further.
    Thanks,
    vijay

  • Redirect based on list of source IP ranges

    Hi everyone
    We are looking for a way to 302 redirect a client to an alternate url based on their source IP address. If they do not match the source IP, the request will be load balanced to a farm.
    The list of matching IP ranges is quite large though - there are upwards of 5000.
    Is there a way to do this on the ACE 4710 efficiently?
    Thanks
    A

    Yes, you can use an HTTP class-map
    Scimitar1/User1(config)# class-map type http loadbalance redirect_clients
    Scimitar1/User1(config-cmap-http-lb)# match source-address ?
        Enter client source address to match
    Then you can use this class-map in your policy-map to use different serverfarm
    Scimitar1/User1(config)# policy-map type load first-match WEB
    Scimitar1/User1(config-pmap-lb)# class ?
      class-default     Specify actions for default class-map
      redirect_clients
    Scimitar1/User1(config-pmap-lb)# class redirect_clients
    Scimitar1/User1(config-pmap-lb-c)#
    <.....add your redirect serverfarm here ......>
    Scimitar1/User1(config-pmap-lb-c)# ex
    Scimitar1/User1(config-pmap-lb)# class class-default
    Scimitar1/User1(config-pmap-lb-c)#
    <.... add your loadbalancing serverfarm here .....>
    This is going to be a bit tedious to configure your 5000 client ip addresses.
    Maybe you could script it ?
    Gilles.

  • ACE 4710 Redirection based on incoming Spanish Language

    I have a customer that wants to redirect incoming traffic to a different url or host based on the end users language. Spanish in particular. What is the best way to accomplish this task with the least amount of issues.
    Stan

    If you capture a sniffer trace of any HTTP traffic, you will see that every request contains a line like this :
    "Accept-Language: de"
    So, in this example the request contains information that the browser accept German (DE).
    If you sniff a request from a spanish browser, you should see a similar line with the "SP" letters.
    Then with ACE, you can match those requests with a class-map like below :
    AceC6k2/Admin(config)# class-map type http load Spanish
    AceC6k2/Admin(config-cmap-http-lb)# match http heade Accept-Language header-value sp
    AceC6k2/Admin(config-cmap-http-lb)#
    Then inside your policy-map you can use this class-map to differentiate spanish request from the others.
    policy-map type
    AceC6k2/Admin(config)# policy-map type loadbalance http first-match Web
    AceC6k2/Admin(config-pmap-lb)#
    AceC6k2/Admin(config-pmap-lb)# class-map Spanish
    <.....do something here for spanish browsers .....>
    AceC6k2/Admin(config-pmap-lb)# class class-default
    <..... do something here for the other browsers ......>
    gilles.

Maybe you are looking for

  • Select data from ORacle in an orchestration

    Hi,    I am looking for an example of orchestration with two way send port. The orchestration should select data from an oracle DB using input to orchestration. Based on the query results, orch has different paths to follow. Can someone please point

  • File Content Conversion help

    Input file is Excel file. Should I need to convert this using the File Content Conversion(File Sender), if so can anyone pls explain me how???? thank you

  • Help help - my MacBook Air is in sleep mode and not accept my password

    My macbook air is in sleep mode now but i'm not able to open it!! the password dialogue would not accept any entries. It just beeped away at every key stroke but took nothing. I have not changed my password!

  • How to modify Java options in Oracle 10g Application Server

    I am trying to modify the Java Options to specify the following field: -Djavax.xml.transform.TransformerFactory= org.apache.xalan.processor.TransformerFactoryImpl But I am unable to locate the Server Properties section on the Administration section.

  • Creating IT00 and retrieving pernr

    Hi Guys,           Generally when we do hiring in R/3, after creating IT0000 we get the pernr (internal). How to achieve this through BAPI? I know we cannot perform action thru BAPI. But what I am doing is I am creating each infotype (00, 01, 02, 06,