Forum Discussion

Manshan_201640's avatar
Manshan_201640
Icon for Nimbostratus rankNimbostratus
May 26, 2015

How login works?

I have custmized logon.inc page but when I hit Logon button present in that page its going url like mydomain.com/vdesk/hangup.php3 I don't want to go it to that page. In that page I get error message like

 

Your session could not be established.
The session reference number:  xxxxxxxxx
Access was denied by the access policy. This may be due to a failure to meet access policy requirements.    

How to avoid the page being redirected to this page and stay and do nothing onclick apart from validation happens. Can I know how the the data gets submitted to Server and gets validated ? Whats the workflow ? Is there any code for it which I have missed out ?

 

8 Replies

  • Are you sure that your have wired your VPE for an Allow ending? By default, you will get a Deny ending which will cause /vdesk/hangup.php3 to be served.

     

  • Hi Walter,

     

    I guess that's not done. By default, I am getting Deny ending which redirects to /vdesk/hangup.php3, even if I dont enter any values under name and password text boxes. How could I avoid redirecting it to /vdesk/hangup.php3 and valid on the login page, and then redirect only if valid credentials are entered else show an error message in the same login page. Please guide.

     

    Thanks.

     

  • If you use a default logon page does it behave as you expect? If so I assume that when customizing the page you removed some code that is needed to make it work properly.

     

    If with a default page it doesn't work then we can look into the VPE and see what you have configured and how we can make it work more like you want it.

     

    Seth

     

  • Hi Seth,

     

    Is there a way where I can change the Deny ending path url from /vdesk/hangout.php3 to some other url?

     

    thanks.

     

  • I am UI Developer, so I would like to know how to handle Deny ending path url? I want to customize it. Is it possible?

     

  • Hi Seth,

     

    I was able to change the redirect url.

     

    But stuck up now in last step of validation. When user enters wrong credentials, page should be redirected to logon page( this part is done) and display an error message saying wrong credentials entered and force the user to enter correct credentials. How could I write this functionality? Error message box is ready but what is the query to execute and check whether user entered correct or wrong credentials?

     

    thanks

     

  • you shouldn't have to do all that. when you fail logon then the F5 will tell you the credentials were wrong.

     

    please have a look at the APM documentation and start with something simple. it feels like you are making it much more complex then needed.