Redirect to Portal Login page from portlet

We have lots of applications on the portal and many of them need the logged in user information to provide the right display context. For example, "My Notes" where notes are stamped with the user's login id. Our portlet applications show exception messages when the user id is unavailable. Pressing a refresh button takes them to the portal login page.
Does anyone know how to redirect to the portal login page? Here is how I would like it to work: A user has the application up beyond the session timeout period and does something that causes the page to submit. At the application server we look for the logged in user ID which is missing due to session timeout and we send them to the portal login page.
Thanks! Mike

Hi James,
<br />
<br />I fear this isn´t possible to do with ADDT, as it will - when using its Restrict Access To Page behaviour - always redirect to the page you specified in the Control Panel.
<br />
<br />However you can help yourself with a simple custom PHP redirect script
<i>(place it @ @ line 1 of your document)</i> which checks whether the "kt_login_id" Session Variable is set, and if it´s not set, redirect to a different login page:
<br />
<br /><?php<br />if (!isset($_SESSION['kt_login_id'])) {<br />header('Location: http://www.example.com/directory/login.php') ;<br />}<br />?>
<br />
<br />Hint: users who login via a different login page will still be redirected to ADDT´s default login page when logging out
<br />
<br />Cheers,
<br />Günter Schenk
<br />Adobe Community Expert, Dreamweaver

Similar Messages

  • Redirecting user to login page after session expiry

    Hi,
    Default session expiry implementation in sap EP6.0 doesn't work properly. To overcome this, we have implemented one component where we check the idle time and throw the user back to the login page if the idle time has exceeded the session expiry period. This component has been added to desktop inner page as an iView. Following is the logic put in this component.
    IAuthentication ia = UMFactory.getAuthenticator();
    ia.logout(httpRequest, httpResponse);
    httpResponse.sendRedirect("/irj/portal");
    We are successfully getting the login page after session expiry. Issue is, our portal server is running on 11111 port. We cannot change this to 80 on unix because of unix limitations for the port number. So we have put one apache web server before our portal server. Apache web server is listening on port 80 and forwarding the request to our portal server.
    Now when user is redirected to the login page, url being shown in the browser is http://<host_name>:11111/irj/portal but I am expecting http://<host_name>/irj/portal (without port). I have tried putting the full url in sendRedirect() method but that too doesn't work.
    Any help is highly appreciated.
    Regards,
    Chandra

    Hi Chandra,
    Let the URL be relative in the sendRedirect i.e.
    httpResponse.sendRedirect("/irj/portal");
    However since you have a Reverse proxy in front, the response header for redirect will not contain the address of the reverse proxy in this case, your servername without port. You have to properly configure your reverse proxy so that the HTTP Headers are changed properly before sending the response to the users.
    Check this URL,
    http://httpd.apache.org/docs/1.3/mod/mod_proxy.html#proxypassreverse
    This gives you the details on configuring your apache.
    Hope this helps.
    Ankur
    P.S. If this helps please reward points.

  • Calling portal framework page from non portal page

    Hi,
    We are having some difficulty in passing control from the non portal pages to
    the Portal Pages.
    To explain you more elaborately, I am writing down the scenario:
    Both our portal and non portal pages reside under the same web application folder.
    We have a Portal Page containing one portlet.Clicking on one of the hyperlink
    on this portlet page takes us out of the portal environment where we are doing
    some processing.
    (Why we are going out of the portal environment is because we want to call the
    existing pages as it is and our intention is not to make the existing pages portal
    enabled to start with).
    Somewhere down the journey on the non portal page, there is a requirement to call
    the Portal Framework page.
    We can call the portal Framework page from the non portal page by hard coding
    the URL of the Portal page by writing something like this in href:
    http://localhost:7501/application?origin=content.jsp&event=bea.portal.framework.internal.portlet.event&pageid=home&portletid=bachome_carsearchlink&wfevent=link.next
    But this is not what we want. We want to call the portal page without hard coding
    the URL.
    If we use portlet tag in non portal page to call the Portal Framework page ( <a
    href="<portlet:createWebflowURL event="link.next"/>">Next Page</a>), it throws
    us error "Could not find current Portlet State" which is quite understandable,
    because portlet state is now lost.
    Is there any way we can achieve this .
    Any suggestions or ideas?
    Thanks
    Ajay

    Hi
    i think you should use portal:createPortalPageChangeURL (you are effectively changing
    your portal page) .
    if you want to invoke a specific event in your portlet webflow you can either
    write a RefreshControllerIP or use WebflowJSPHelper.createWebflowURL.
    bear in mind if you have urls that directly go to an intermediate event in the
    portlets webflow you may need
    http://dev2dev.bea.com/codelibrary/code/portlet_pp.jsp
    regards
    deepak
    "Ajay" <[email protected]> wrote:
    >
    Hi,
    We are having some difficulty in passing control from the non portal
    pages to
    the Portal Pages.
    To explain you more elaborately, I am writing down the scenario:
    Both our portal and non portal pages reside under the same web application
    folder.
    We have a Portal Page containing one portlet.Clicking on one of the
    hyperlink
    on this portlet page takes us out of the portal environment where we
    are doing
    some processing.
    (Why we are going out of the portal environment is because we want to
    call the
    existing pages as it is and our intention is not to make the existing
    pages portal
    enabled to start with).
    Somewhere down the journey on the non portal page, there is a requirement
    to call
    the Portal Framework page.
    We can call the portal Framework page from the non portal page by hard
    coding
    the URL of the Portal page by writing something like this in href:
    http://localhost:7501/application?origin=content.jsp&event=bea.portal.framework.internal.portlet.event&pageid=home&portletid=bachome_carsearchlink&wfevent=link.next
    But this is not what we want. We want to call the portal page without
    hard coding
    the URL.
    If we use portlet tag in non portal page to call the Portal Framework
    page ( <a
    href="<portlet:createWebflowURL event="link.next"/>">Next Page</a>),
    it throws
    us error "Could not find current Portlet State" which is quite understandable,
    because portlet state is now lost.
    Is there any way we can achieve this .
    Any suggestions or ideas?
    Thanks
    Ajay

  • XMII Portal Login Page

    Hi ,
    I am unable to view the login screen for the xMII portal.
    I tried to access the login page from the system where the xmII server is installed.
    When i type in the url -- http://<server>/Lighthammer/Login.jsp it directs me to the menu page without asking my username and password.
    Are there any settings to enable the authentication page??
    Please help.
    Message was edited by:
            vaishali dhayalan

    Hi Shyam,
    The configuration below is the trusted server configuration for the system being used
    Name  --               localhost
    Description --        localhost
    IP  --                    127.0.0.1 (IP address of the system used)
    I am unable to delete this configuration since my delete button is disabled even after selecting the server config.How else could i delete it?
    Will there be a problem if we delete this server config??
    Please help.
    Message was edited by:
            vaishali dhayalan
    Message was edited by:
            vaishali dhayalan

  • Error when redirecting the portal logoff page

    Hello,
    we have a problem in redirecting the portal logoff page.
    Our production system is a cluster environment -windows 2003.
    we have developed customizing page for portal logoff.
    when the cluster is in Node A the functionality of the logoff page is working fine and it is redirecting to the customized page.
    But when we shift it to Node B and logoff the portal it is not showing the customized page.
    We have referred the following note also:696294.
    We have added the portal logoff page is IIS services also.
    But when we shift the server from NodeA-NodeB the functionality of the redirecting is not happening and it gives a message
    you are not authorized.
    I appreciate any one response.
    Regards,
    Krishna.

    Hi sridhar,
    Thanks for your reply.
    What my error is "iam getting the logoff page redirected when the cluster resources are in Node1 but iam not getting the same logoff page when the cluster is nodeB"
    Ie we have developed a customising logoff page and set the page.When the services are in Node A the fucntionality is working fine.But when the resources move to NodeB iam not getting the customized logoff page".It says no authentication.
    Aprreciate your further help.
    Regards,

  • ADF Application and Oracle Portal Login Page

    We have developed ADF application and deployed it in Oracle AS 10.1.2 along with the custom JAAS module, which is working fine with the application custom login page. As a next page, I want to use Oracle Portal login page for the authentication and authorization.
    How can I accomplished it? Any idea?
    Thanks,
    AP

    Shay,
    1. I created blank ADF project
    2. I copied myreport.jsp file (this one was generated by Oracle Report Builder) under ..ViewController/public_html directory
    3. Created directory 'lib' under ViewController/public_html/WEB-INF/lib
    4. Copied reports_tld.jar file under the directory created in 3.
    5. Created simple jspx page with the af:link (btw af:goLink does not exists in JDev 12c), set 'destination' to myreport.jsp
    After the steps above I could not even compile the application, many problems too many to list here, Basically JDev is trying to build the project with .jsp file generated in Report Builder and is unable to.
    So to be sure we are on the same page: I am trying to embed JSP report files generated by Report Builder into ADF project, then create EAR file and deploy on standalone WLS. Finally execute JSP web only report.

  • Urgent....How can i redirect to my jsp page from servlet in init() method..

    How can i redirect to my jsp page from servlet in init() method..Becoz that servlet is calling while server startsup..so im writing some piece of code in init() method..after that i want to redirect to some jsp page ...is it possible?
    using RequestDispatcher..its not possible..becoz
    RequestDispatcher rd = sc.getRequestDispatcher("goto.jsp");
    rd.foward(req,res);
    Here the request and response are null objects..
    So mi question can frame as how can i get request/response in servlet's init method()..

    Hi guys
    did any one get a solution for this issue. calling a jsp in the startup of the servlet, i mean in the startup servlet. I do have a same req like i need to call a JSP which does some data reterival and calculations and i am putting the results in the cache. so in the jsp there in no output of HTML. when i use the URLConnection i am getting a error as below.
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:707)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:705)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:519)
    at com.toysrus.fns.alphablox.Startup.callJSP(Unknown Source)
    at com.toysrus.fns.alphablox.Startup.init(Unknown Source)
    at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
    so plz do let me know how to call a jsp in the start up of a servlet.
    Thanks
    Vidya

  • Not able to pass portal login page with valid credentials using WebDispatch

    Hi,
    We are implementing SAP BillerDirect Portal. To make BillerDirect Portal available over the internet, we Configured SAP WebDispatcher with SSL termination.  We followed the steps mentioned in SAP Help Documentaion for SAP WebDispatcher with SSL termination.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/76/6d4fa247d0d647b5bd40745400d873/frameset.htm
    We created certificate  and send it to CA (TrustCenter CA). We received the CA response and we imported the certificate.
    AS mentioned in the help document, we configured the SAP Web Dispatcher profile to support SSL termination
    We tried to access our BillerDirect Portal over the internet using below link
    https://company.com/bd
    We are getting login page, once we enter correct user ID and Password, portal is not loading (not going to next page) portal remains on same login page.
    If we enter invalid credentials portal login page is giving u201CUser Authentication Failedu201D error.
    If we try to access any portal login pages which brings a pop-up for login, login gets succeeded and we are able to see next pages
    Examples
    1)     https://company.com/bd/admin/xcm/init.do
    2)     https://company.com/monitoring/SystemInfo
    All pages which bring up portal login page without pop-up, not able to pass through portal login screen.
    We Tried the ProxyMapping option on Dispatcher using Visual admin. This option also didnu2019t work for us.
    Here is the WebDispatcher Profile
    SAPSYSTEMNAME = xxx
    SAPGLOBALHOST = xxxxx
    SAPSYSTEM = 00
    INSTANCE_NAME = W00
    DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTI386
    DIR_EXECUTABLE = $(DIR_CT_RUN)
    Accesssability of Message Server
    rdisp/mshost = hostnameofportalserver with FQDN
    ms/http_port = 8101
    Configuration for medium scenario
    icm/max_conn = 500
    icm/max_sockets = 1024
    icm/req_queue_len = 500
    icm/min_threads = 10
    icm/max_threads = 50
    mpi/total_size_MB = 80
    SAP Web Dispatcher Ports
    icm/server_port_0 = PROT=HTTPS,PORT=443
    icm/server_port_1 = PROT=HTTP,PORT=80
    icm/HTTPS/verify_client = 0
    SAP Web Dispatcher Web Administration
    icm/HTTP/admin_0 = PREFIX=/sap/wdisp/admin,DOCROOT=D:\usr\sap\xxx\W00\data\icmanroot\admin,AUTHFILE= D:\usr\sap\xxx\SYS\global\security\data\icmauth.txt
    Parameters for the SAP Cryptographic Library
    ssl/ssl_lib = D:\usr\sap\xxxW00\sapcrypto.dll
    ssl/server_pse = D:\usr\sap\xxx\W00\sec\SAPSSLS.pse
    ssf/name = D:\usr\sap\xxx\W00\sec\SAPSSLS.pse
    ssf/ssfapi_lib =  D:\usr\sap\xxx\W00\sapcrypto.dll
    sec/libsapsecu =  D:\usr\sap\xxx\W00\sapcrypto.dll
    wdisp/ssl_cred = D:\usr\sap\xxx\W00\sec\SAPSSLC.pse
    Parameters for Using SSL to the backend server
    wdisp/ssl_encrypt = 1
    wdisp/ssl_auth = 1
    wdisp/ssl_cred = D:\usr\sap\xxxW00\sec\SAPSSLC.pse
    wdisp/ssl_certhost = hostnameofportalserver with FQDN
    wdisp/ssl_ignore_host_mismatch = true
    #ICM Parameters
    icm/HTTP/j2ee_0 = PREFIX=/, HOST =hostnameofportalserver with FQDN PORT=50000,SPORT=50001, SSLENC=1,TYPE=1, CRED =D:\usr\sap\xxx\W00\sec\SAPSSLC.pse
    We also tried below options in WebDispatcher profile but we are getting same problem.
    wdisp/add_client_protocol_header = true
    wdisp/add_clientprotocol_header = 1
    wdisp/ssl_ignore_host_mismatch = true
    #ICM Parameters
    icm/HTTPS/forward_ccert_as_header = true
    icm/HTTPS/trust_client_with_issuer = *
    icm/HTTPS/trust_client_with_subject = *
    we also tried
    wdisp/ssl_encrypt = 0
    wdisp/ssl_auth = 0
    we also tried
    wdisp/ssl_encrypt = 2
    wdisp/ssl_auth = 2
    We are not able to resolve issue. Please help us on resolving this issue.
    Thanks
    Praveen

    ' in Host Names is not allowed. Our hosname has '_'.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/67/be9442572e1231e10000000a1550b0/frameset.htm

  • Dynamic Text in SAP portal login page

    Hi All,
    I want to display some text information in the SAP Portal login page.Is it possible to display dynamic text in the login page?
    Can anybody help in this?
    Regards,
    V Karthi

    Check the following links as well.
    [Customizing Portal Login Page;
    [Portal Login Page Customization;
    Check all 3 weblogs.
    Regards
    Puneet

  • How to disable right click on SAP portal login page

    Hi,
    How to disable right click on SAP portal login page. Our requirement is one should not be able to right click -
    >view source. on the portal login page.
    Best Regars,
    Tushar

    Hi Tchanvan,
    If you search google with "javascript disable right click" you will get loads of javascript code. This will also help you to gain knowledge.
    @Explanation to last post : You need to import standard logon par file in NWDS. Create javascript file to disable right click and then include this file in your logon page. i think login page name is portalLogin.jsp and then deploy this new PAR file.
    regards,
    Jigar Oza

  • Homepage keeps getting redirected to gmail login page

    i startup ff to my homepage www.google.com/ig and it keeps getting redirected to gmail login page. I unistalled most recent addon's but problem not solved. doesn't matter what version of ff i install.

    To access the iGoogle page you need to be logged on to the Google server. <br />
    You need to make sure that you keep the Google cookie(s) that identify you.
    Such details are stored in a cookie.
    * Create an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    * In [[Private Browsing]] mode all cookies are session cookies that expire if that session is ended, so websites won't remember you.
    * Do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all cookies, images, pop-up windows, software installation, and password exceptions.
    See also:
    * http://kb.mozillazine.org/Cookies

  • Urgent: how to Logoff and redirect to the login screen from WebDynpro appli

    Hi,
    i want to logoff and redirect to to the login page.
    i use WDClientUser.forceLogoffClientUser([_"what should be the code here"_]);
    If i pass null as the url, it will terminate and default message will be shown (it will not go to logon screen)
    I want to logoff and navigate to customize login page.
    I don't know from which server the request is from dev, Qa or some other system.
    I can use WDClientUser.forceLogoffClientUser("http://dev"); but it doesn't work with QA.
    i will be really appriciate we suggest me regarding this. Its urgent please send for responce ASAP.
    Thanks
    NSM

    Hi,
    use the following code to get the url
    String hostName = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerName();
              int port = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerPort();
              StringBuffer url = new StringBuffer("http://");
              url.append( hostName );
              url.append(":");
              url.append(port);
    WDClientUser.forceLogoffClientUser(url.toString());
    Regards
    Ayyapparaj

  • CE 7.11 Portal login page issue after SPS4 Update

    Hi Guys,
    Has anyone worked on SP stack 4 update of SAP Netweaver CE 7.11 system?
    I ask this because I did this sometime back and immediately after the update, I realized that the text size, alignment, etc. of the text (Username, Password) on logon page of CE portal (http://host:port/irj) changed a lot. The text size became different and even the alignment of the text on this page changed.
    But nothing else got affected inside the portal and even the login pages for NWA, Useradmin, etc. were unchanged.
    It seems there was an issue with the stylesheet for that page only.
    This issue is dealt with in SAP Note no. 1397747, as per which the solution is to apply the latest J2EE Apps patch on the system. But even after applying the correct patch, the issue is not yet resolved.
    Has anyone who has done SPS4 update in CE 7.11 faced this issue as well?
    Thanks,
    Shitij

    Well, after raising an OSS message with SAP, they worked on a new patch file for J2EE Applications (J2EEAPPS SPS4 patch 3) and after deploying this patch, the issue was resolved.
    So if anyone else faces the same problem, please deploy the latest J2EE APPS patch file by downloading it from service marketplace.
    Closing the thread now.
    Regards,
    Shitij

  • Big authentication problem: not being redirected to the login page

    Hello, everybody!
    I've just noticed a big problem in the web application I'm developing. In this
    application I'm using the FORM authentication method as you can see below in the
    web.xml file:
      <security-constraint>
         <web-resource-collection>
                <web-resource-name>permitido</web-resource-name>
                <url-pattern>/*</url-pattern>
           </web-resource-collection>
           <user-data-constraint>
                <transport-guarantee>NONE</transport-guarantee>
           </user-data-constraint>
      </security-constraint>
      <security-constraint>
           <web-resource-collection>
                <web-resource-name>restrito</web-resource-name>
                <url-pattern>/confirmacaoreserva.jsp</url-pattern>
                <url-pattern>/confirmacaoreserva.faces</url-pattern>
                <url-pattern>/reservaconfirmada.jsp</url-pattern>
                <url-pattern>/reservaconfirmada.faces</url-pattern>
           </web-resource-collection>
           <auth-constraint>
                <role-name>ADMINISTRADOR</role-name>
                <role-name>USUARIO</role-name>
           </auth-constraint>
           <user-data-constraint>
                <transport-guarantee>NONE</transport-guarantee>
           </user-data-constraint>
      </security-constraint>
      <login-config>
           <auth-method>FORM</auth-method>
           <form-login-config>
              <form-login-page>/login.jsp</form-login-page>
                <form-error-page>/errologin.jsp</form-error-page>
           </form-login-config>
      </login-config>
      <security-role>
           <role-name>ADMINISTRADOR</role-name>
      </security-role>
      <security-role>
           <role-name>USUARIO</role-name>
      </security-role>If I type in the browser's address field any of the protected pages,
    confirmacaoreserva.faces or reservaconfirmada.faces, the web container redirects
    me to the login page as expected, as I was'n authenticated yet. Until till
    this point everything is working without problem. But I noticed, to my surprise,
    that when I click on a link in a web page like this:
    <h:commandLink value="#{msg.reservar}" action="#{materiais.reservarMaterial}">
        <f:setPropertyActionListener target="#{materiais.codigoMaterial}" value="#{material.codigo}" />
    </h:commandLink>
    // in the backing bean
    public String reservarMaterial()
        // some processing...
        return "confirmacaoReserva";
    // in faces-config.xml
    <navigation-rule>
        <navigation-case>
            <from-outcome>confirmacaoReserva</from-outcome>
            <to-view-id>/confirmacaoreserva.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>it completely by-passes the web container authentication and redirects me to the
    protected page (+confirmacaoreserva+) without asking me first to authenticate in
    the login page. Of course this is unacceptable.
    So, how can I solve this? How do I fix this problem?
    Thank you.
    Marcos

    Marcos_AntonioPS wrote:
    BalusC wrote:
    Which appserver implementation/version are you using?JBoss 4.2.3.GAOK.
    Which JSF implementation/version are you using?The default JSF implementation that comes with JBoss 4.2.3.GAWhich one? Read the manifest file of the JSF implementation JAR.
    Does it work if you redirect instead of forward in the navigation case (just add <redirect />) ?I haven't tested yetAnd?

  • When I connect to the hotel wireless, it takes 2 or 3 minutes to be redirected to the login page

    Hi all,
    I have a problem with my Firefox 4 beta: when I connect to the hotel wireless, and I start the browser, I should be automatically redirected to the hotel's main login page.
    In FF4b I get 2 error messages (attached) and I am not redirected immediately... it takes 2 or 3 minutes to be redirected.
    If I don't want to wait I have to start IE, make the login, and then get back to FF4b.
    I believe this situation is connected with the "Test Pilot" and/or the "sync" function of FF...
    Any ideas about what I should do? Any setting I should change?
    Thanks,
    Tozé
    Link to error messages:
    [http://dl.dropbox.com/u/12096987/FF4b_Error1.jpg Error message #1]
    [http://dl.dropbox.com/u/12096987/FF4b_Error2.jpg Error message #2]

    Hi Prakashkarthikeyan,
    If you are having an issue with your cellular data connection not linking up properly, I would suggest that you troubleshoot using the steps in this article - 
    iPhone cellular data connection issues
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

Maybe you are looking for

  • How to use /*+ INDEX */

    Hi friends, Where can I find documentation for the usage of [*+ INDEX */] in SQL statement? Thanks, Peter

  • Synching multiple ipods to 2 computers

    my children have an i-tunes account that they share and their ipods are all linked to that account and synched on their computer...my husband and I recently bought i-phones...can we all be linked to the same i-tunes account/music library and share al

  • Problem installing iTunes 8.0

    I am getting some kind of weird problem when installing iTunes. The first problem was my AVG not allowing iTunes to install, i resolved that but now i have this weird mini player unable to register. The exact error: Module C:\Program Files\iTunes\iTu

  • Trust Certificates when linking to PDFs from another PDF

    Good Morning All, Running Acrobat Pro 9. I've created a pdf document with links to other pdf. All are located in main folder and all links work. The problem is that I keep getting the warning: If you trust the site, choose Allow. If you do not trust

  • How to animate an object that goes behind another

    Does anyone know how to go about animating a movie clip that would go behind another movie clip? For instance: A stack of photos, that on click, the top photo would animate to the left (or right) and then animate to the back of the stack. My only pro