NetTalk Central

Author Topic: login redirect page  (Read 6368 times)

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
login redirect page
« on: April 14, 2011, 03:03:45 PM »
Hello i have three login area 1. client
                                              2. staff
                                              3. Admin
If i click on the login menu buttons they all work properly no problems and if i enter wrong password no problem it redrects me to right page to retry OK.

But if i get a time out after login or i just copy into the browser address window one of the screens i need to login in to view
i was expecting it to direct to the right login window for that screen but instead it shows all the login screens overlaping each other please can anybody help on this pls driving me mad.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: login redirect page
« Reply #1 on: April 14, 2011, 08:58:58 PM »
The server can't "direct" a page into a specific frame.
Your browser asks for a page, and the "target" of that request is an instruction to the browser, not the server.

So when you get an auto-login window that window appears in whatever frame "failed".

While you can't really stop that, you can change what happens _after_ after the person logs in. So what I usually do if I'm using frames* is override the "chaining" and set the login Save URL to the "Frameset page" and the target to '_top'.

* - I've moved away from frames somewhat, mostly because the "popup" metaphor makes them somewhat redundant. It turns out this is remarkably easy to do. All you're really doing is creating a new "main page", moving the menu to a generic header and setting a global header (and possibly footer) tag, the other pages pretty much stay "as is".

cheers
Bruce

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: login redirect page
« Reply #2 on: April 15, 2011, 12:50:41 AM »
am abit confuse now bruce about your explaination can i get a simple working example of this pleaseee

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: login redirect page
« Reply #3 on: April 15, 2011, 05:54:43 AM »
let's roll back just a bit.
If you try example 7 is this similar to what you're seeing / doing in your app?

[tip: you can simulate a session end by just stopping and starting the webserver exe]

Cheers
Bruce

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: login redirect page
« Reply #4 on: April 15, 2011, 08:22:48 AM »
what am doing is similar but what am seeing diffrent the loginforms just all overlap each othher on view when you restart the webserver and refresh screen

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: login redirect page
« Reply #5 on: April 15, 2011, 09:31:35 PM »
ok, can you duplicate the effect you are getting in the example?

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: login redirect page
« Reply #6 on: April 16, 2011, 05:47:25 AM »
yes i could replicate the problem , all i had to do was create another loginform and loginpage and then create a new browse which the new login form  is use  to view and when i try and open any of the browse or pages that needs login i get the same effect has explained above either by stopping the server and restarting and then repoening the browser and pionting to one of the pages that needs you to be login..

What i was hoping or trying to do is get it to only open the login screen required for that screen and not showing the other login screen has well.

i have attached a pic of screen that comes up

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: login redirect page
« Reply #7 on: April 17, 2011, 04:14:21 AM »
excellent  - please post the updated example here.

cheers
Bruce

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: login redirect page
« Reply #8 on: April 17, 2011, 09:44:41 AM »
Here is an example of the app

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: login redirect page
« Reply #9 on: April 17, 2011, 10:40:17 PM »
I'm still not 100% sure I understand what you want, but I _think_ you get it if;

a) WebServer procedure, NetTalk Extension, Settings Tab, General Tab
set "LoginPage" to 'LoginForm'
and
b) 'Login Page is Control" is ticked on.

cheers
Bruce

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: login redirect page
« Reply #10 on: April 18, 2011, 01:06:06 AM »
Sorry bruce the one i sent above was the wrong one this was the one, i was meant to send

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: login redirect page
« Reply #11 on: April 18, 2011, 09:11:48 PM »
when you copied the LoginPage procedure to LoginPage2
you left the page name as "login.htm".

So now you have 2 procedures with the "page name" set as login.htm.

and the global setting for "login page" (Webserver procedure) is set as (you guessed it) 'login.htm'

So, in effect you're getting both the LoginPage, and LoginPage2 procedure. I recommend setting the setting in the Webserver procedure to the actual page you want. ('LoginPage' or 'LoginPage2'). That said, my earlier comments regarding changing this to 'LoginForm' still apply.

cheers
Bruce

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: login redirect page
« Reply #12 on: April 19, 2011, 11:54:27 AM »
Thanks bruce got that to work from your advice