NetTalk Central

Author Topic: Auto directing after user login - How?  (Read 3695 times)

CyberFerret

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
Auto directing after user login - How?
« on: October 01, 2011, 10:37:49 PM »
Hi all,

We have a project developed in NetTalk 5 which is a fairly basic user project messaging portal that requires a login to use.

Part of the functionality is that when a message is sent to a user on the portal, an email is sent to the recipient with a link back to the specific project in the portal e.g.: http://www.myportal.com/projects?projectID=12345

Now, these pages are set to only display if logged in, and I love the way that NetTalk automatically takes the user to the login screen if they are not already logged in so they can do so.

However, once they log in, they are taken to the main portal dashboard, and not to the link that they were trying to head to.

What is the neatest way to capture the original page reference, so that once the login procedure is completed, it can redirect the user to the project page that they wanted to do to? (and conversely if they are doing a normal login then just go to the dashboard?)

Thanks,
Devan

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: Auto directing after user login - How?
« Reply #1 on: October 02, 2011, 02:28:41 AM »
Hi Devan,

If you leave the 'URL on Save' blank then it will automatically go to the page that triggerred the login.

Regards,
Ubaidullah Nubar.

CyberFerret

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
Re: Auto directing after user login - How?
« Reply #2 on: October 02, 2011, 04:33:57 PM »
Hi Ubaidullah,

Wow - It's THAT simple!!  ;D

Never realised that this was the default behaviour - I've been filling in that field in ALL my NetTalk apps to redirect to the main portal page.  Now I know.

Thanks very much for the immensely useful tip!  ;)

Cheers,
Devan