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.

Similar Messages

  • How to redirect user from login page to "Set Challenge question" page

    How to redirect user from login page to "Set Challenge question" page (NOT custom page) after 3 un successful password attempts?
    Meaning when user types wrong password 3 times they will be redirected to set Challenge question page. If user answers the challenge question then password reset page should be appeared other wise (after remaining 3 un successeful challenge question answers) account should be locked out.
    thanks for your help.

    hi sandeep
    Thanks for your answer. Let me ellaborate more on the requirement here.
    - Password Policy and Lost Password management are set up in the identity system
    - Configure login tries allowed= 5. Verify accout is lock out after 5 unsucessful login.
    This is what need to achieve.
    1) If a user attempts to login 3(not 5) times using an incorrect login credential he/she should be redirected to set challenge question (security question) page.
    2) Then if the user attempts (remaining) 2 times incorrect challenge answer then his/her account should be locked out.
    3) If he/she answers the challenge answer correctly then he/she should be redirected to password reset page.
    Is this possible?

  • How to redirect users to different pages after logging in?

    Please HELP this is doing my head in.
    I have created a login for a site using dreamweavers login tools, but I need to direct users to their individual pages, as Dreamweaver shows only one.
    I here you can store urls in you data base then call on them depending on the user is this correct ?
    Or is there another way ?
    Could someone show me what I need to do ?
    Any help would be appreciated
    Dazza

    Hi
    It would become a long reply if I showed you, and I would require your database structure. So this is a simple 'things to do / steps to take' list.
    (the access level and user id, (not the same as database table id) are used interchangeable here)
    The first item is to ensure you have your database set-up to allow the items to be recovered from it dependant upon the users id/access level. This could be done via a simple access level being set, the access level would be set in the user table and the page content from the database would have a matching column in the table for content.
    The DW authentication server behaviour will set the access level in the same session variable at the same time as the logged-in session is set, (see the DW documentation on user authentication for how to use this feature).
    It would then be a simple matter of retrieving the information for the page using the DW recordset query server behaviour, which can also automatically set the access level in the query code to ensure that the items to be retrieved matches the access level.
    The biggest problem most people who try to set-up a restricted access section of a site, is not the server behaviour to restrict access to content, but the cms section of the site to create the content as required. For this is may be worth while reading - http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html, although your database code would be slightly different as you would require the access level/user id be used to 'filter' the results returned and the items for the user to view, (links to content) also must be access level/user id dependant, (tip, use conditional region code for this).
    PZ

  • I am unable to login from my login page after I restarted my mini mac running snow leopard 10.6 server. I am a new user. Need help

    I am unable to login from my login page after I restarted my mini mac running snow leopard 10.6 server. I am a new user. Need help

    Try clearing your cache, [https://support.mozilla.org/en-US/kb/How to clear the cache Instructions here]. Then, try going to [https://accounts.google.com Google Accounts]. If there is currently an account singed in, sign out, then back in. After that, try going to Google Adwords.

  • 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

  • Not able to get the login page after installing 12.1.1

    HI,
    i am not able to get the login page after installing in the 12.1.1. when i accessed from client machineo.Please help me in fixing out this problem.
    Thanks,
    venkat.

    Hi,
    What is the OS?
    What is the error message?
    Any errors in Apache/Database log files?
    Thanks,
    Hussein

  • Unable to  get the login page after upgrade from 11.5.10.2 to R12

    Hi ,
    We are unable to get the login page after upgrade from 11.5.10.2 to R12, all the services are up and running.
    Pls let me know if someone has come across this issue.
    Thanks&Regards,
    Apps DBA

    Hi ,
    After compile JSP files manually , now we are facing problem after logging.
    Error : You have encountered an unexpected error.
    Thanks&Regards,
    Apps DBA

  • Open popup window and redirect user to home page in sandboxed solution

    i've created a sandboxed solution visual webpart and it has submit button so when user fills the information in the text boxes availble in webpart and clicks submit button so I want to open popup button containg success message and ok button so when user
    clicks ok button in popup window i want user to be redirected to the home page of the site.
    i tried to open popup and showed success message by below code
     string gotohomepage = "http://sp2013:1111/Pages/home.aspx";
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Your Record has been submitted successfully,you will be redirected to home Page shortly');location.href =
    '" + gotohomepage + "';", true);
    but it's not opening popup window can anyone help how do i open popup window and redirect user to home page in sandboxed solution

    Page class and script manager are not supported in sandbox solution
    You can create model popup to achieve this
    below are the reference links
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    http://social.msdn.microsoft.com/Forums/en-US/9427db4d-60f2-4b2a-8db6-b50d01ac4f23/how-to-create-modal-popup-using-sandboxed-solution

  • How to redirect users to certain page on login

    Hello All,
    I need to redirect users to page 1 after login even if they use a direct URL pointing to some other page. How do i achieve this?
    Ex:
    User logs in using URL:
    http://localhost:port/apex/f?p=101:10:1818843916449354::NO:::should redirect him to below page instead of 10:
    http://localhost:port/apex/f?p=101:1:2314843916462565::NO:::Appreciate your reply.
    Thanks and Regards,
    Senana

    Hello Senana,
    Assuming you're using wwv_flow_custom_auth_std.login to log in, and p_flow_page is set to "[your app id]:1" try placing the following line just before your call to wwv_flow_custom_auth_std.login:
    :FSP_AFTER_LOGIN_URL := null;This should force user to page 1 after log-in.
    Hope this helps,
    John

  • Redirecting user to acustom page depending on security role after glassfish

    Hi,
    I have a JSF application using glassfish authentication mechanism. I'm planning to use a jdbc realm and form based authentication (I'm using a jsp page to get username and password) . I have 3 different user roles (student, admin and staff)
    However I cannot find how to redirect a user to a different page (Ex: staff report page if the logged in user is in the security role staff). I have configured sun-web.xml and web.xml to map the roles and groups. The problem is after authentication the user is always redirected back to the home page, which is the login page. I understand this is how the glassfish authentication works by default. But is there a way to navigate the user to a different page depending on his role.
    I'm new to EJB security. Please help me on this subject. Thanks a lot in advance.

    Check this blog post, which provides an alternate solution (You can choose the best possible solution based on your use-case).
    http://andrejusb.blogspot.com/2007/10/security-in-oracle-adf-and-automatic.html
    Thanks,
    Navaneeth

  • How to redirect page after session time out-Urgent

    I want to redirect my page once the session time out..
    plz let me knw its very urgent

    HI
    i too got the same problem. At present i fsession expires i'm farwarding it to Some general login page. But we've diffenternt employers with differnet login pages. How can i farward to login page wich the use entered in previously
    For this i got one solution buti don't how to implement it.
    After login page i'll send one value as parameter to Servelt controller.This value ,i append as query string to all requests which are going through the Servelt. And i'll retrive this value from the URL referal. whenever session expires i'm farwarding to some Session Expired JSP . There i want to check this varibale's and depanding on that i'l farward to particular login page.
    This is in my mind . Can any help me how to Implement this.
    Satya

  • LMS 3.2.1 - New user gets white page after login

    Hy Pros.
    Recently I've added a new local user to the LMS, but everytime he logs in, he gets a white page in his browser.
    I've tried the workarounds for bug CSCte29226, but they didn't fix it.
    Do you have any hints?
    regards
    Marc

    Existing user still get their Portal shown, but not new users.
    The LMS is connected to an ACS, but not in ACS Mode. We're only authenticating the users at the ACS. Authorization is still local.
    But this seems to be working, becasue if the new user is mistyping the password, the login page reappears telling that the authentication failed.
    Following your link I get this:
    Bug CSCtb17186 does not exist
    Thanks.
    cheers
    Marc

  • 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

  • How Session based web Application should work even after session expiry??

    I am looking for an experts opinion that how could I develop an application that should work after the expiry of web session too in the same way as it works in web session.
    How the session should be activated.
    As I understood, what if I store all the required information in xml and then on unlock session reload all the information from XML.
    Am I right or is there any other better way to do using servlets.
    Basically I need to implement Lock and UnLock mechanism in an application.
    Thanks

    I'm not sure I understand your question. But since no one answered this yet, here is my idea:
    If the user's session expires, any unsaved data is lost. The user should expect this.
    If do need to save any data, normally you store it it a database table with the user's ID so you can retrieve it. Two free databases are Oracle Lite and MySql. However, this will take quite a bit of time to learn if you are not already familiar with databases. Storing it in a database and retrieving it is much much faster than storing it in a file.

  • Redirect user/show default page when using entitlements

    Hello,
    We have created a few entitlements and placed these are a number of books and pages. The entitlements check and compare a specific set of attributes in the session object.
    Currently, if a user accesses a page with one of these entitlements all they see is the header and footer defined in the desktop shell. The backing file and portlets in the page do not look to be invoked or rendered, which is what I expected.
    Is there a way such that if a customer accesses a page of this type, to redirect them or possibly show default content in the page so it is more meaningful?
    Regards,
    Jonathan

    Hi...
    Thanks for asking....
    As I put in my post before, I include template0 in my template1, as seen in template1 (AHM001):
    <af:pageTemplateDef var="attrs">
    *<af:pageTemplate viewId="/template/AHM000.jspx">*
    I use AHM000 inside AHM001. I use this approach to build many template based on one basic design.
    Actually, I don't think the problem is in page template usage because as I submitted paralel to Metalink, I've already not called template0 in template1 but I copy template0's contents to template1.
    Unfortunately, page designer show small view and below error messages still occured.
    *Jun 7, 2009 10:25:20 PM ComponentMetadataHandler _error*
    WARNING: error parsing component tag in file: /AhmTestTemplate-ViewController1-context-root/template/AHM001.jspx/tag:xmlContent/id:null
    org.xml.sax.SAXParseException: <Line 115, Column 51>: XML-20100: (Fatal Error) Expected 'EOF'.
    Fortunately my application can be run already altough the error message still logged.
    Many thanks,
    Dominic C.

Maybe you are looking for

  • Projects won't open, pp cs5.5 crashes

    I have a new iMac (i5, 8 gb ram, 2 gb video card) and pp5.5, using avchd video footage. I create a project, works great...close the file and when I try to open the project again pp crashes. Every project I have created since I bought the computer and

  • Why does my BIS emails always appear on one line?

    I use a Blackberry Storm 9500 and have started using the BIS email account but when I reply (or reply to all or forward) emails the text I send always appears on one line regardless of the punctuation I use. This includes my email signature. Has anyo

  • Flex 3 : Accessing Rest Ful  Webservices from Flex

    Hi , I am new to this term RestFul Webservices . I am using FlexBuilder 3. For accesing Restful web services , what is the Component Required , is it <mx:HttpService> or the <mx:Webservice> Please clarify , Thanks .

  • Big data and database administration

    Hi, I am working as a Oracle DBA. I would like to know what is dba role for Big data & Nosql. Is it really useful for learning bigdata. Thanks,

  • Developing a site layout like Apple's Website

    I layout and ease of use of apples website. I would like a similar layout for an information site I will be creating. The scroll features and the drop down features: can those be created using iweb? Is there a template that is similar to the pages of